'..v.errInfo..'\n
-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') dir=edcb.GetPrivateProfile('SET', 'ModulePath', '', 'Common.ini')..'\\Tools\\' ffprobe=edcb.GetPrivateProfile('SET','ffprobe',dir..'ffprobe.exe',ini) ct={title='録画結果'} 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 fpath=mg.document_root..'\\video\\'..fname..ext break end end if not video then f=edcb.io.open(w.recFilePath, 'rb') if f then video=PathToRoot()..'api/Movie?id='..v.id fpath=w.recFilePath ori=true end end if video then ct.js='\n' dur,fsize=GetDurationSec(f, fpath) f:close() end RecInfo='
' ..(info or '')..'
\n'..v.errInfo..'\n