2013-06-01 51 views
0

我对亚马逊云前端流选项有一个混淆。我还没有注册AWS,所以我想确定我想要什么。云前端视频流

这种情况是,我选择了一个视频在2点流传到iPhone。该视频长30分钟。如果一个人在上午2点10分打开视频链接。他会从哪里看到视频?他会从一开始就观看视频吗?还是从上午10点开始观看视频?

我的第二个问题是,当我从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