Handheld.PlayFullScreenMovie positioning bug on iOS7 / Unity 5.1.1

I’m getting a problem with Handheld.PlayFullScreenMovie on iOS 7. All is fine on iOS8, but on iOS7, my video position is offset so that I’m only seeing a quarter of it on screen (see attached image).

This is with Unity 5.1.1. but I’ve also tried it with 5.1.1p3

The video is meant to play immediately, and I suspected it may be related to this bug:

…but I’ve tried delaying the displaying of the video for a few frames, and even tried putting it in subsequent scene, but get the same result.

I’ve also played around with different scalingModes but no difference.

I’m on the verge of just checking for iOS7 and not displaying the video in that case which would be a bit rubbish to have to do. Any ideas?

We have already fixed this, but the fix hasn’t yet made it to the 4.6/5.1 branches (this should happen soon), but until then you can workaround this by removing “self.center = movieView.center= rootView.center” from (void)onUnityUpdateViewLayout in Unity/MPVideoPlayer.mm after building your Xcode project.

Ah amazing. Thank you! I’ll give that a go.

Yep working now. Acepants.
Thanks again.

Thank you very much for this tip _Paulius !!

This has already been fixed and it’s no longer necessary to change anything if you’re using the latest version of 5.1.