5 Replies Latest reply: Jul 29, 2013 12:16 AM by mihau12345 RSS

    Strobe Media Playback in Flex wrapper.

    seokjoon Community Member

      Hi,

       

      I am trying to create a flex wrapper for Strobe Media Playback.

      It works fine in Normal stage, but stream is not displayed in fullScreen mode even if I can hear the audio.

       

      Can anybody please help me?

       

      I am using Strobe Media Player 1.6 and OSMF 1.6,

       

      My wrapper is like :

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                                       xmlns:s="library://ns.adobe.com/flex/spark"

                                       xmlns:mx="library://ns.adobe.com/flex/mx"

                                       creationComplete ="init(event)">

      <fx:Declarations>

      <!-- Place non-visual elements (e.g., services, value objects) here -->

      </fx:Declarations>

      <fx:Script>

      <![CDATA[

                import mx.core.UIComponent;

       

                private const HTTP:String = "http://mediapm.edgesuite.net/osmf/content/test/manifest-files/dynamic_Streaming.f4m";

       

                protected function init(event:Event):void

                {

                               var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();

             var ui:UIComponent = new UIComponent();

             var parameters:Object = {

                                                                                                                                             src:HTTP,

                                                                                                                                             controlBarMode:"floating",

                                                                                                                                             controlBarAutoHide:"false"

                                                                                                                                };

       

             playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);

       

             ui.addChild(playerInstance as DisplayObject);

          

                               addElement(ui);

                }

      ]]>

      </fx:Script>

      </s:Application>