StageVideo on iOS resize on orientation change issue
I am using the SimpleStageVideo library by Thibault (http://www.bytearray.org/?p=2571) in an iOS app, using Starling for graphics and switching to a StageVideo player for videos. Here is the behavior I am seeing:
The video opens from portrait mode, every time
When video opens in portrait, video viewport is centered correctly and video stretches to fill the screen with the correct aspect ratio
When I turn to landscape mode, video rotates but does not scale up properly. It shows up in the correct x and y position, but is not large enough to fill out the screen.
This is a strange behavior because the SimpleStageVideo class handles these resizes properly as far as I can tell. On the orientation change I am listening to, I get the new stage dimensions and send the SimpleStageVideo object a resize command. The resize command sees the correct screen size, sets the StageVideo.viewPort property correctly (as the trace statements show) but the video is still not the right size. I'm not really sure how to fix this because the only size-related property you can set on StageVideo objects is the viewPort which isn't doing it for me. videoWidth and videoHeight are read-only. Has anybody seen an issue like this?
I have attached screen shots, hopefully they are clear on what the issue is. According to my trace statements, the viewport in portrait is Rectangle(0, 300, 640, 360) which is correct, and in landscape it is Rectangle(0, 50, 960, 540) which is also correct.
thanks for your time!
Nick
