【发布时间】:2015-12-25 16:33:00
【问题描述】:
尝试从我的 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
此解决方案在我的浏览器中不起作用。
【问题讨论】:
-
我目前似乎遇到了同样的问题,您可以在哪里找到解决方案?
标签: html amazon-web-services video amazon-s3