2015-12-23 79 views
0

嘗試從我的Amazon Cloudfront流式傳輸視頻。我用html頁面(jwplayer.html),視頻(process.mp4)和jwplayer(從官方網站上傳)創建了一個桶。此外,我還創建了CloudFront Web分配和CloudFront RTMP分配。從AWS流入視頻

添加到jwplayer.html下面的代碼:

<HTML> 
<HEAD> 
    <TITLE>Amazon CloudFront Streaming with JW Player 6</TITLE> 


    <script type='text/javascript' src='https://d7io7dti9fwp9.cloudfront.net/video/jwplayer-7.2.4/jwplayer.js'></script> 
    <script type="text/javascript">jwplayer.key = "AHKJ8oqvx6qWX8d9RY00tDP7VTETGz814NNzLw==";</script> 
</HEAD> 

<BODY> 
    <H1>This video is streamed by CloudFront and played by JW Player 6.</H1> 



    <div id='mediaplayer'></div> 
    <script type="text/javascript"> 
    jwplayer('mediaplayer').setup({ 
     file: "rtmp://s2z3jy56jskpuw.cloudfront.net/cfx/st/mp4:process.mp4", 
     width: "720", 
     height: "480" 
    }); 
    </script> 

</BODY> 
</HTML> 

這裏是我的結果:

http://d7io7dti9fwp9.cloudfront.net/jwplayer.html

這種解決方案並不在我的瀏覽器。

+0

我目前有同樣的問題,似乎你能在哪裏找到解決方案? – DLF85

回答