开发者

my video won't play?

I tried a lot but I don't know why it won't play.

开发者_运维问答<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>


All you should need to do is create a link to your video file like so ...

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

Then call the following javascript from the flowplayer js file you should be including

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  
}
});

For my source and more information look here http://flowplayer.org/demos/configuration/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜