2014-01-12 91 views
1

我真的很難理解爲什麼我寫的代碼不是加載視頻。我收到一條錯誤,說沒有找到視頻,但它在那裏。我認爲它是我如何嵌入的問題。JW播放器嵌入從S3的RTMP

<script type="text/javascript" src="https://d22dpplejhrt07.cloudfront.net/jwplayer.js"></script> 

       <div id="mediaplayer">This text will be replaced</div> 

       <script type="text/javascript"> 
        jwplayer("mediaplayer").setup({ 
         flashplayer: "https://d22dpplejhrt07.cloudfront.net/player.swf", 
         file: "rtmp://s12djcvw3migda.cloudfront.net/cfx/st/mp4:finalSW.mp4", 
         backcolor: "000000", 
         frontcolor: "FFFFFF", 
         autostart: "true", 
         controlbar: "bottom", 
         width: "550px", 
         height: "309px" 
        }); 
       </script> 

該播放器位於S3,我創建了一個Web分配和視頻文件,我創建了RTMP分配。

我真的不明白爲什麼這不起作用,任何幫助都會很大。

回答