1 Reply Latest reply: Mar 7, 2012 2:43 AM by Silviu Vergoti RSS

    Position OSMF 1.6 Player (keep centered on page) with StageVideo


      I am trying to center the OSMF Player on browser resize, but the exposed x/y properties for both MediaPlayerSprite and it's container don't work:


      _mediaplayerSprite.x = x;

      _mediaplayerSprite.y = y;




      _mediaplayerSprite.mediaContainer.x = x;

      _mediaplayerSprite.mediaContainer.y = y;


      When using the standard StageVideo (without OSMF), they have a "pan" property which didn't work for me either, but had to adjust the "viewport" property to successfully center it. 


      What's the best way for going about this?