2011-09-06 74 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