如何在 mp4 文件缓冲时使用 flowplayer 播放?

发布于 2024-12-07 09:51:38 字数 53 浏览 0 评论 0原文

它总是仅在 mp4 完全加载时播放,我想在视频缓冲时播放它,可以吗?

谢谢。

It always play only when mp4 is fully loaded, i would like to it playing while video is buffering, it's possible to do?

thanks.

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

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

发布评论

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

评论(1

苏辞 2024-12-14 09:51:38

我使用带有这些设置的 Flowplayer,视频在缓冲时开始

           flowplayer("player", {

                  // our Flash component
                 src: "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",
                     // we need at least this Flash version
                      version: [9, 115],
                   // older versions will see a custom message
                     onFail: function()  {
                      document.getElementById("info").innerHTML =
                     "You need the latest Flash version to see MP4 movies. " +
                        "Your version is " + this.getVersion();                           
                        }
                    // here is our third argument which is the Flowplayer configuration
                   },
                     {
                    clip: {
                            url: "<?php echo($fileName); ?>",
                            autoPlay: false,
                            autoBuffering: true
                        }
                      });

我认为“autoBuffering”就是您正在寻找的

I use flowplayer with those settings and the video starts while it buffers

           flowplayer("player", {

                  // our Flash component
                 src: "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",
                     // we need at least this Flash version
                      version: [9, 115],
                   // older versions will see a custom message
                     onFail: function()  {
                      document.getElementById("info").innerHTML =
                     "You need the latest Flash version to see MP4 movies. " +
                        "Your version is " + this.getVersion();                           
                        }
                    // here is our third argument which is the Flowplayer configuration
                   },
                     {
                    clip: {
                            url: "<?php echo($fileName); ?>",
                            autoPlay: false,
                            autoBuffering: true
                        }
                      });

I think that "autoBuffering" is what you are looking for

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