FLVPlayback 组件不会无缝循环

发布于 2024-09-02 03:34:42 字数 352 浏览 11 评论 0原文

到目前为止,我使用 FLVPlayback 组件无缝循环渐进式下载的 15 秒视频的所有尝试都失败了。循环时总会有瞬间的停顿。对于这种情况,在 Flash 项目中嵌入视频不是一种选择,而且瞬间的暂停也是不可接受的。我尝试将 autorewind 设置为 true 并处理由 FLVplayback 触发的 autorewind 事件。我尝试过观察 flvplayer 的播放头,看它何时完成 99.5% 以上并寻求 0。我最新的解决方案包括在 FLVPlayback 组件后面使用两个具有相同源的 VideoPlayer 实例,并在循环时在它们之间切换,结束和开始之间仍然有一个似乎。我已经在 Quicktime 中测试了该视频,以确保它不是视频的伪影。

有人成功做到过吗?

Everything I've tried so far with a FLVPlayback component to seemlessly loop a progressively-downloaded 15 second video has failed. There's always a split-second pause when it's time to loop. For the scenario, embedding video in a flash project is not an option, and the split-second pause is unacceptable. I've tried setting autorewind to true and handling autorewind event fired by FLVplayback. I've tried watching the playhead of the flvplayer for when It gets upwards of 99.5 percent done and seeking to 0. My latest solution involves having two VideoPlayer instances with the same source behind the FLVPlayback component and toggling between them when it's time to loop, and there is still a seem between the end and beginning. I've tested the video in quicktime to make sure it's not an artifact of the video.

Has anyone successfullly done this?

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

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

发布评论

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

评论(1

廻憶裏菂餘溫 2024-09-09 03:34:42

我也对解决这个问题感到不满,不幸的是没有办法解决这个问题(看看这个 actionscript.org 论坛帖子了解详细信息)。如果您确实需要无缝循环,唯一的选择是将 FLV 嵌入到您的 swf 中,方法是将其放入时间轴中,这将为您提供完美的结果;但是,您随后会牺牲逐步下载视频的能力。

很抱歉带来坏消息!我过去总是通过以下方式处理这个问题:a)嵌入我的视频(如果它们足够短),或者b)对视频内容进行设计,使小问题不明显(例如,在视频中使用某种缓动)视频的前几帧/最后几帧)。

I've had the displeasure of grappling with this problem as well, and unfortunately there's no way to pull it off (check out this actionscript.org forum post for details). The only option at your disposal if you really need a seamless loop is to embed the FLV in your swf by putting it in the timeline, which will give you perfect results; however, you then sacrifice the ability to progressively download the video.

Sorry to be the bearer of bad news! I've always dealt with this in the past by either a) embedding my videos, if they're short enough, or b) engineering the video content so that the little hiccup isn't noticeable (e.g. using some sort of easing in the first/last few frames of the video).

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