在OSMF中寻找错误
我有一个使用 Adobe 的 OSMF 构建的 HTTP 视频播放器,当尝试在子剪辑中查找时,我遇到了奇怪的行为。
播放器使用 "http://videoserver.com/video.flv"
等 URL 向服务器请求数据以获取完整视频,并附加 "?begin=123456"
请求从 123456 字节偏移量开始的子剪辑。
每当我尝试在加载的子剪辑中进行搜索时,播放头就会下降到子剪辑的开头,然后视频从那里开始播放。尽管 mediaPlayer.canSeek()
和 mediaPlayer.canSeekTo(newtime)
都返回 true。
如有任何反馈,我们将不胜感激!
I have a HTTP video player built using Adobe's OSMF and I am experiencing a strange behavior when trying to seek within a subclip.
The player requests data from the server using URL like "http://videoserver.com/video.flv"
to get the full video, and appends "?begin=123456"
to request a subclip starting at 123456 bytes offset.
Whenever I try to seek within a loaded subclip, the playhead just drops to the start of the subclip and the video plays from there. Although both mediaPlayer.canSeek()
and mediaPlayer.canSeekTo(newtime)
return true.
Any feedback is more than appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OSMF 自动寻找最近的关键帧。尝试对视频关键帧/秒进行编码。
在此处阅读更多信息: http://www.adobe.com/devnet /flash/articles/osmf-media-player.html
OSMF automatically seeks to nearest keyframe. Try encoding your video keyframe/sec.
read more here: http://www.adobe.com/devnet/flash/articles/osmf-media-player.html