I am trying work in scaling to my osmf project and cannot seem to make it properly stretch the video to fill the container.
I use this line after i set the media:
LayoutMetadata(mediaPlayer.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMode = ScaleMode.STRETCH;
and my stage is setup like this:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
I am using a serialelement for the media. When I pass in a single video element it works great. But with the serialElement, it maintains the aspect ratio.
Is this a bug? Or am I missing something?
I've run into something similar. I've had to apply the layout metadata directly to the media elements in the serial element. If I apply the layout metadata to the serial element, it will scale the first item, but the second will not be scaled. So when the current child of the serial element changes, I would directly apply the layout metadata to the child media element.