Skip navigation
Currently Being Moderated

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

Mar 6, 2012 2:54 PM

Tags: #osmf #resize #stage_video

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? 


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points