'..v.errInfo..'\n
-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') dir=edcb.GetPrivateProfile('SET', 'ModulePath', '', 'Common.ini')..'\\Tools\\' ct={ title='録画結果', js='\n', searchlinks=true } page=GetVarInt(mg.request_info.query_string,'page',0,100000) or 0 id=GetVarInt(mg.request_info.query_string,'id') or 0 w=edcb.GetRecFileInfo(id) edcb.htmlEscape=15 v=edcb.GetRecFileInfo(id) if v then -- トランスコード済みのファイルがvideoフォルダにあればそっち使う fname=string.match(w.recFilePath, '[^\\]*$') or '' for i,ext in ipairs({'.mp4','.webm'}) do f=edcb.io.open(mg.document_root..'\\video\\'..fname..ext, 'rb') if f then video=PathToRoot()..'video/'..mg.url_encode(fname)..ext break end end if not video then f=edcb.io.open(w.recFilePath, 'rb') if f then video=v.id ori=true end end if video then dur,fsize=GetDurationSec(f) f:close() end RecInfo='
' ..(info or '')..'
\n'..v.errInfo..'\n