【问题标题】:Cloud Front Video Streaming云端视频流
【发布时间】:2016-01-15 13:47:48
【问题描述】:

我对亚马逊云前端流媒体选项感到困惑。我还没有注册 AWS,所以我想确定我想要什么。

场景是我选择在凌晨 2 点将视频流式传输到 iPhone。视频长30分钟。如果有人在上午 2 点 10 分打开视频链接。他会从哪里看到视频?他是从一开始就观看视频,还是从上午 10 点开始观看视频?

我的第二个问题是,当我从云端流式传输视频时,用户可以向前还是向后搜索?

基本上,我想流式传输预先录制的网络研讨会,并且我想给用户一种错觉,即这是一场现场活动,而不允许他们向前或向后寻找。

【问题讨论】:

    标签: amazon-web-services amazon-cloudfront


    【解决方案1】:

    创建 S3 存储桶并在其上上传文件后。为您的存储桶创建网络分发。 并用于播放视频。创建一个html页面

    <HTML>
    <HEAD>
    <TITLE>Amazon CloudFront Streaming with JW Player 6</TITLE> 
    
    <script type='text/javascript' src='http://content.jwplatform.com/libraries/yQ0SAHQS.js'></script>
    
    </HEAD>
    
    <BODY>
    
    <h1>Cloud Front Video Streaming</h1>
    
    <div id="myElement">Loading the player...</div>
    <script type="text/javascript">
    var playerInstance = jwplayer("myElement");
    playerInstance.setup({
        file: "http://d49asxxxxxxxxxxxx.cloudfront.net/Make-a-world-of-difference.mp4",
    
        width: 640,
        height: 360,
        title: 'Basic Video Embed',
        description: 'A video with a basic title and description!',
        mediaid: '123456'
    });
    </script>
    </BODY>
    
    </HTML>
    

    注意:http://d49asxxxxxxxxxxxx.cloudfront.net 是您的云前端的域名。

    <script type='text/javascript' src='http://content.jwplatform.com/libraries/yQ0SAHQS.js'></script>
    
    This is the script for JW Player.that can be found on the 
    www.jwplayer.com/ after signup. 
    Choose your player 16:9 or 480*720
    

    您将获得一个脚本库代码。 http://content.jwplatform.com/libraries/yQ0SAHQS.js

    【讨论】:

      【解决方案2】:

      您可能必须将其作为实时流运行。否则它将只是一个标准视频流,您可以在其中寻找播放中的任何位置。

      您可以在此处找到有关如何执行此操作的更多信息:http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LiveStreamingAdobeFMS4.5.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-08-16
        • 2012-11-17
        • 2015-11-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-05-13
        相关资源
        最近更新 更多