如何在mp4文件缓冲时进行流媒体播放?

时间:2011-09-30 12:01:28

标签: javascript jquery flowplayer

它总是只在mp4满载的情况下播放,我想在视频缓冲的同时播放,有可能吗?

感谢。

1 个答案:

答案 0 :(得分:1)

我使用带有这些设置的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”就是你要找的东西