我可以使用 NetStream 启动或寻求亚秒间隔吗?
我正在开发 Flash 视频播放器,并实现在 FLV 范围内的 x 时间启动视频(由 FMS 提供)的功能。我可以在流中启动 x 秒,没有任何问题,
netStream.play(source, startTime);
但据我所知,它只支持秒。我希望能够以毫秒为单位给出开始时间(或者甚至是搜索时间,如果支持的话),或者实际上比整秒更精确的时间。
有人知道有什么方法可以通过猴子修补 fl 类来实现这一目标吗?
谢谢,
道格
I am working on a Flash Video player and am implementing the ability to start a video at x time within the span of an FLV (served from FMS). I am able to start it x seconds into a stream without any issue using
netStream.play(source, startTime);
but as far as I can tell, it only supports seconds. I am looking to be able to give a start time (or even a seek time if that is supported) in milliseconds, or really anything more precise than whole seconds.
Anyone know of any way to achieve this even by monkey patching the fl classes?
Thanks,
Doug
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,搜索将允许您按多个帧进行搜索,但规范表示它仅搜索 FLV 中的结束 I 帧。这将成为您使用的任何方法的问题,因为 I 帧是唯一真正包含整个图片帧的帧 (这是要点)。
Well the seek will allow you to seek by a number of frames, but the spec says that it only seeks to the closes I-Frame in the FLV. That will become a problem with any method you use, because the I-Frames are the only ones that actually contain the whole picture frame (here's the gist of that).