开发者

Variable bitrate streaming with Amazon Cloudfront

开发者 https://www.devze.com 2023-01-06 09:40 出处:网络
Hey there - does anyone know what I need to do to set up variable bit-rate streaming with Amazon Cloudfront. I am not using JWPlayer but have built my own flash player.

Hey there - does anyone know what I need to do to set up variable bit-rate streaming with Amazon Cloudfront. I am not using JWPlayer but have built my own flash player.

What calls to I need to make to Cloudfront and how do I make them? Or is it all handled on the client side?

I am using FMS 3.5.

Any help greatly appreciat开发者_JAVA技巧ed.


Your video player will have to make a call to FMS to switch the stream.

I'd suggest looking at the RTMPMediaProvider swap function as an example of how to do this. In short, your code would look like this:

var _stream:NetStream;
var nso:NetStreamPlayOptions = new NetStreamPlayOptions();
nso.streamName = getID(NEW_PATH);
nso.transition = NetStreamPlayTransitions.SWITCH;
_stream.play2(nso);

Best,

Zach

Developer, LongTail Video

0

精彩评论

暂无评论...
验证码 换一张
取 消