OSMV is very thick so so I'm trying to put a series of minimalist tutorials and again I'm stuck with something that should be dead simple.
I have a VideoElement that I added to a MediaPlayer. Now now do I set the size of the video?
I'd like to just set the size on the mediaPlayer or MediaElement and not include 20 layout classes like the OSMF examples.
private function handle_elementLoaded(e:MediaFactoryEvent):void
{
mediaPlayer = new MediaPlayer(e.mediaElement);
mediaPlayer.addEventListener(MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, handle_stateChange);
}
private function handle_stateChange(e:MediaPlayerStateChangeEvent):void
{
trace("handle_stateChange",e.state);
if (e.state == MediaPlayerState.READY)
{
addChild(mediaPlayer.displayObject);
}
}