The iPhone slides the movie in to view before playing, the problem is I need to play the movie in position as I’m trying to create a seamless effect where the movie plays on top of the game view.
I’ve done some research and from what I can tell Unity is calling
[moviePlayer setFullscreen:YES animated:YES]
where the animated line needs to say no… unfortunately I don’t know where I can change this. If anyone knows how and could provide a quick step by step instruction it would be great.
I’ve managed to fix this in a hackish way. Swapping the implementation of [UIViewController presentMoviePlayerViewControllerAnimated] with a version that presents the movie player controller modally with no animation. No guarantees this works for your situation, but it works for us:
Unity 4.0.1f2 and this is still a problem. Why isn’t the animation option exposed in Unity’s iPhoneUtils function? I’d like to try coquifrogs’ solution, but I don’t really know where to put that code, or which parts of JRSwizzle to put where. Has anything changed in the last two years since this problem was first identified?
Any solution? I encountered that in Unity 3.3 this bug was not there, but Unity 3.4 will have this bug.
How could I play it with my own code? I know how to play a video with objective-C but I dont know how to find out the location of the Streaming folder of unity.