2 Replies Latest reply on May 22, 2012 3:03 AM by hemgui

    Problem with StageVideo and MediaContainer




      We have build a custom VideoPlayer on top of OSMF..

      We used a MediaContainer since the beginning of the project and listen MouseEvent.CLICK on it.

      The VideoElement was resized and centered in the MediaContainer :

                currentMediaContainer.layoutMetadata.scaleMode = ScaleMode.LETTERBOX;

           currentMediaContainer.layoutMetadata.horizontalAlign = HorizontalAlign.CENTER;          currentMediaContainer.layoutMetadata.verticalAlign = VerticalAlign.MIDDLE;


      After setting OSMFSettings.enableStageVideo = true;  everything go wrong


      The VideoElement was resized but not centered.

      => For this problem, I try to calculate the new size and position and set a new viewPort on first StageVideo object on the stage (no success)


      The click event from the MediaContainer is not dispatch.

      The org.osmf.vast.mediaVAST2TrackingProxyElement from the VASTLibrary use this click to handle advertisement redirection and tracking. We could watch a videoAd but no click on it.


      Any help would be appreciated




      Guillaume HEMERY

      AS3 Developper

      Brainsonic - Paris