|
When I play a movie using: iPhoneUtils.PlayMovie("MyMovie.m4v", transitionColour, iPhoneMovieControlMode.CancelOnTouch, iPhoneMovieScalingMode.AspectFill); 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. Thanks!
(comments are locked)
|
|
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?
(comments are locked)
|
|
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: I use the JRSwizzle code from https://github.com/rentzsch/jrswizzle to do the method implementation swaps in the appDidFinishLanuching like so: I basically have the same problem as Tim_c22. Any help on how to fix this or how to implement the fix provided by coquifrogs would be very helpful. Thanks!
Jan 31 at 03:23 PM
btree
This worked for me as recent as Apr 2013. Important to note that importing #import rather than the other comment below that imports "VideoViewController.h" worked for us. Thanks!
Apr 01 at 03:31 PM
vak151
(comments are locked)
|
|
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. Any workaround greatly appreciated!!!!!
Mar 26 '12 at 04:08 PM
peter
(comments are locked)
|
|
We managed to implement the solution provided by coquifrogs. Get JRSwizzle.h and JRSwizzle.m from https://github.com/rentzsch/jrswizzle. Place them in your Classes folder inside your Xcode project. Generate a file called UIViewController.h and place it in the Classes folder as well. Put the following code in UIViewController.h Locate the class
in AppController.mm
(comments are locked)
|

I'm having the same issue, i will keep you posted.
thanks, I've sent the question to unity support as well hopefully they'll answer. I'll post back if they do.
Quoted from an e-mail I got from http://support.unity3d.com
"Ok, At the moment this hasn't been changed/exposed from the Apple default movieTexture player. i.e. [moviePlayer setFullscreen:YES animated:YES] isn't actually called any where. It might be possible for you to set non-animated via a custom plugin... Otherwise atm there is nothing out of the box to enable/disable this..."
So this doesn't look hopeful. :/
Maybe someone out there knows how to get this working.