flv播放器控制时间

发布于 2024-08-10 05:44:38 字数 183 浏览 4 评论 0原文

我正在使用 Flex flv 播放器组件,我希望能够向前和向后跳过 5 秒,目前从我从文档中了解到的情况来看,这是不准确的,因为电影只能跳到关键帧,有时会跳过 6 或7秒。这同样适用于提示点,如果那里没有关键帧,flv 可能会错过实际点/ 我的问题是还有其他方法可以更准确地使用播放器吗?因为我在网络上看到可以执行这些跳过的播放器

谢谢

I am using the flex flv player component and i want to be able to skip 5 seconds forward and backwards , at the moment from what i understand from the documents it is not acurate because the movie can only skip to keyframes sometimes making the skip 6 or 7 seconds. the same goes to cue points which the flv might miss the actual point if there is no keyframe there/
my question is there any other way to use the player in a more accurate manner ? since i see on the web players that can do these skipps

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

江南烟雨〆相思醉 2024-08-17 05:44:38

查找 FLV 文件的能力完全取决于关键帧间距。这是因为关键帧本身就可以创建整个视频图像。 (与帧内帧相反,帧内帧依赖于a)前一个关键帧,以及b)它和之间的所有帧间帧前一个关键帧。)这就是他们的工作方式。

但也许您对视频的编码方式有一些影响?您能指定最小关键帧间距吗?例如:25fps 视频的关键帧间隔为 50,即每 2 秒一次。或者更小?

No

The ability to seek into an FLV file is entirely dependent upon the key frame spacing. That is because a key frame can create an entire video image all by itself. (As opposed to intra-frames, which are dependent upon a) the previous key frame, and b) all inter-frames between it and the previous key frame.) That's just they way it works.

But maybe you have some influence over how the videos are encoded? Could you specify a minimum key frame spacing? E.g.: A key frame spacing of 50 for a 25fps video would be every 2s. Or even smaller?

这样的小城市 2024-08-17 05:44:38

我开发了这样一个播放器,你可以使用flv-player.net,也可以复制js播放器。没有控制栏,因此您可以通过 javascript 控制所有功能,

下载 flv-player.js.swf 以及演示代码,编写您自己的控制栏,即播放、搜索、暂停、音量和全屏。

因此,您将需要额外的努力来编写这些功能,因为我提到的播放器没有任何控制栏。

I have developed such a player, you can use flv-player.net, and copy js player. there is no control bar, so you can then control all the feature from javascript,

download flv-player.js.swf along with demo code, write your own control bar, mean play , seek , pause , volume , and fullscreen.

So you will need extra effort to write these feature becuase the player that i mention have not any control bar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文