Hi Amit,
If you set scaleMode to "letterbox" it will shrink the video to fit
one dimension to the size of the video container. This will leaves
empty space on either the sides or the top and bottom of the video.
This works fine when the bars are on the top and bottom of the video,
but I have encountered a bug where the video will be left-aligned when
the bars are on the left and right, leaving a large gap on the right.
This will be fixed in a future build of REOPS, but for now you can set
the horizontalAlign property of the layout metadata in the
_initMediaPlayer method to 'center' before you use the layout
metadata:
layoutMeta.scaleMode = _playerConfig.scaleMode;
layoutMeta.horizontalAlign = 'center';
layoutMeta.verticalAlign = 'center';
_mediaPlayerShell = new MediaContainer( null, layoutMeta );
Nils