This project is read-only.

Setting MediaPlayer's isFullScreen when in portrait?

Topics: Windows 8 JavaScript
Aug 15, 2014 at 4:36 PM
I have set the PlayerFramework.MediaPlayer's isFullScreen property to "true". It plays as expected in landscape mode. However, when the video starts while the device has already been rotated to portrait mode, the video is still the same size as if the video player had been started in landscape mode. Essentially the player is too wide.

(This happens even if I start the app in portrait and never ever turn the device to landscape.)

How do I ensure that the video fits to the screen?

Aug 15, 2014 at 4:52 PM
I figured it out and of course it was an easy mistake.

I was basing my player from one of the online examples and the MediaPlayer had set msZoom. I removed this property from the HTML and now the player fits just fine landscape or portrait mode.
Marked as answer by jaxim on 8/15/2014 at 8:52 AM