Skip to main content
Participant
January 8, 2014
Answered

Trying to play cloud front stream in share pod

  • January 8, 2014
  • 1 reply
  • 872 views

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");

                    }

          }

}

This topic has been closed for replies.
Correct answer Abhinav_Arora

Adobe Connect is based on Flex SDK 3.5B. Some of the features in your code are newer than the one for Connect. As a result when you load your swf to the share pod, Flash player is unable to play certain features as they are newer than the SDK of the loading Swf (3.5B for Connect). However when you run it locally you run it as a standalone Flex 4 application.

1 reply

Abhinav_Arora
Abhinav_AroraCorrect answer
Participating Frequently
January 8, 2014

Adobe Connect is based on Flex SDK 3.5B. Some of the features in your code are newer than the one for Connect. As a result when you load your swf to the share pod, Flash player is unable to play certain features as they are newer than the SDK of the loading Swf (3.5B for Connect). However when you run it locally you run it as a standalone Flex 4 application.

rVibeFredAuthor
Participant
January 8, 2014

OSMF.swc v1.0 appears to require Flex SDK 4.1.

So how would someone play Amazon Cloudfront live streams in an Adobe Connect share pod?

Is there a way other than using OSMF 1.0? Or, alternately, is there a way to get OSMF 1.0 to be compatible with SDK 3.5?

Abhinav_Arora
Participating Frequently
January 8, 2014

I don't think you would be able to do it. But I am not sure. I shall get back to you after digging more into it.