2013-05-07 53 views
1

雖然網絡上有大量關於Flowplayer中的啓動圖像的信息,但在使用Flashembed嵌入視頻時,我很難找到任何有用的信息。這是我有什麼,這是行不通的:Flowplayer - 使用Flashembed的視頻容器啓動屏幕

<a href="video/myVideo.flv" style="display:block; width:280px; height:200px; padding-left:7px;" id="player"></a> 

        <script language="JavaScript"> 
         flashembed("player", "flowplayer/flowplayer-3.1.5.swf", { 

         // "config" parameter is a complex JSON object, not just a simple value 
         config: { 
          splash: true, 
          clip: { 
           autoPlay: false, 
           autoBuffering: true, 
           playlist: [{url:"images/home-video-splash.jpg"}, {url: "http://myWebsite.com/video/myVideo.flv"}] 
          } 
         } 
        }); 
        </script> 

任何幫助將不勝感激!

+0

你試過打電話'的Flowplayer()'代替'flashemed()'直接看看它是否有效? – rcdmk 2013-05-07 15:23:38

回答

0

HAH!一個簡單的解決方案,rcdmk - 你是對的,我也有一些.js轉向了錯誤的方式。所以,你的建議,以及一些正確的語法,這始終是有幫助的,這裏是我結束了,現在的工作:

<a href="video/myVideo.flv" style="display:block; width:280px; height:200px; padding-left:7px;" id="player"><img src="images/home-video-splash.jpg" /></a> 

        <script language="JavaScript"> 
         flowplayer("player", "flowplayer/flowplayer-3.1.5.swf", { 
         // "config" parameter is a complex JSON object, not just a simple value 
         config: { 
          clip: { 
           playlist: [ 
            { 
             url: 'images/home-video-splash.jpg' 
            }, 
            { 
             url: 'http://myWebsite.com/video/myVideo.flv', 
             autoPlay: false, 
             autoBuffering: true 
            } 
           ] 
          } 
         } 
        }); 
        </script>