2011-09-06 54 views
1

我尝试了很多,但我不知道它为什么不玩。我的视频不会播放?

<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

所有,如果您需要做的就是创建一个链接,像这样视频文件......

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

然后调用从的Flowplayer 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

+0

这应该让你下去正确的道路。 Flowplayer可以做很多其他的事情,所有这些都在他们的网站上有很多文档。 www.flowplayer.com – bigamil

+0

我试过了,但它不起作用。我正在运行我的网页在wamp 2.1 - localhost,因为有一些php脚本。 – deepz

+0

在FF中安装firebug检查控制台,它是否会抛出任何错误?或者在Chrome中转到控制台(ctrl + shift + i),看它是否抛出任何js错误。 – bigamil