'..v.errInfo..'\n
-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') ct={ title='録画結果', js='\n', fixedTabs=true, searchlinks=true } 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, '[^'..DIR_SEPS..']*$') or '' for i,ext in ipairs({'.mp4','.webm'}) do f=edcb.io.open(PathAppend(mg.document_root, 'video'..DIR_SEP..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