我的视频不会播放?

时间:2011-09-06 18:11:40

标签: dreamweaver

我尝试了很多,但我不知道为什么它不会播放。

<html> 
 <head>
   <script type="text/javascript" src="player/flowplayer-3.2.6.min.js"> </script>
 </head>
 <body>
   <div>
     <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240"> 
              <param name="movie" value="player/flowplayer-3.2.7.swf" />
               <param name="salign" value="lt" />
               <param name="quality" value="high" />
               <param name="scale" value="noscale" />
               <param name="FlashVars" 
                value="&MM_ComponentVersion=1&streamName
                =../player/baby.flv&autoPlay=false&autoRewind=false" />
               <embed src="player/flowplayer-3.2.7.swf" 
               flashvars="&MM_ComponentVersion=1&streamName
               =player/baby.flv&autoPlay=false&autoRewind=false" 
               quality="high" scale="noscale" width="320" height="240" 
               name="FlowPlayer" salign="LT" type="application/x-shockwave-flash" 
               pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
   </div>
 </body>
</html>

1 个答案:

答案 0 :(得分:1)

您需要做的就是创建一个指向您的视频文件的链接......

<a 
    href="../player/baby.flv" 
    style="display:block;width:425px;height:300px;" 
    id="player">
</a>    

然后从您应该包含的流程图js文件中调用以下javascript

flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",  {
clip: {

    // these two configuration variables does the trick
    autoPlay: false, 
    autoBuffering: true // <- do not place a comma here  
}
});

有关我的来源和更多信息,请查看http://flowplayer.org/demos/configuration/index.html