【问题标题】:Streaming video from AWS从 AWS 流式传输视频
【发布时间】: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


【解决方案1】:

我认为您正在从本教程中获得帮助 http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html

他们已经解释了一切。可能存在文件权限问题。 看看那里一次。

谢谢

【讨论】:

    猜你喜欢
    • 2012-01-09
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 2020-10-19
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多