读取视频流的时间码

FMLE3中有TimeCode选项, 可按Frame Interval将时间嵌入到视频流中.
格式为HH:MM:SS:FF
客户端接收:
AS2:
//ns是NetStream实列
ns.onFI = function(infoObj):Void
{
//infoObj["st"]
//infoObj["sd"]
//文档上记载的是tc, 这个可能是FME2.5的输出, 没做验证
for( var i:String in infoObj)
{
trace(i+” : “+infoObj[i]);
}
}
AS3:
//ns是NetStream实列
ns.client.onFI = onFI;
private function onFI(infoObj:Object):void
{
for(var i:String in infoObj)
{
trace(i, infoObj[i]);
}
}
这样就能根据视频时间进行某些操作了
PDF文档下载

1 comment to 读取视频流的时间码

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">