尝试从我的Amazon Cloudfront流式传输视频。我创建了一个带有html页面(jwplayer.html),视频(process.mp4)和jwplayer(从官方网站上传)的存储桶。我还创建了CloudFront Web分发和CloudFront RTMP分发。
添加到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 :(得分:0)
我认为您正在从本教程中获得帮助 http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html
他们已经解释了一切。可能存在文件权限问题。 看看那里一次。
由于