Trying to play cloud front stream in share pod
I am developing a Flash Project to be loaded into a share pod in Adobe Connect with the goal of playing Amazon Cloudfront live multibitrate streams in AC. I have a project developed in Flash Builder 4.6 using Flex sdk 4.1 and OSMF.swc 1.5, tagetting Flash Player 10.1. The best I have been able to accomplish is to play the stream locally in Flash Player but not when the swf is loaded into Adobe Connect. I have also successfully played an f4m stream hosted by Adobe when the player IS loaded in Adobe Connect. This stream is, I believe, for a video on demand rather than a live stream (the url is http://mediapm.edgesuite.net/osmf/content/test/manifest-files/dynamic_Streaming.f4m).
Any suggestions are welcome.
The code for this project is:
package
{
import flash.display.Sprite;
import org.osmf.media.MediaPlayerSprite;
import org.osmf.media.URLResource;
[SWF(width='680', height='382', backgroundColor='#000000', frameRate='30')]
public class OSMF extends Sprite
{
private var mps:MediaPlayerSprite;
private var track:Sprite;
private var progress:Sprite;
public function OSMF()
{
init();
}
private function init():void
{
mps = new MediaPlayerSprite();
addChild(mps);
// cloud front stream that plays locally in flash player but not when loaded into AC:
mps.resource = new URLResource([cloudfront stream URL]);
// non cloud front stream for VOD that DOES play when loaded into AC:
//mps.resource = new URLResource("http://mediapm.edgesuite.net/osmf/content/test/manifest-files/dynamic_Streaming.f4m");
}
}
}
