iPad Partial Curl Modal View causes MPMoviePlayer to restart

I'm developing a presentation app for a client, and in the presentation the client is able to double tap a slide to view a "sub-slide", which means the current slide does a partial curl transition to present a full screen modal view.

My issue is that these main slides are animated videos (the sub-slides are all still images in PNG format). Whenever the user triggers the page curl, the movie either stays in its current state like it should (either still playing or paused), and when the page curl animation is complete, the movie restarts itself. This occurs regardless of the movie's state.

I tried putting NSLog messages and breakpoints in to see if a method such as viewWillDisappear was being called, but I found nothing.

Any idea what could be causing these videos to restart themselves?



I solved this issue by forcing the MoviePlayer to jump to the last frame and replacing it with an UIImageView instead, which allowed me to unload the movie, save space, and removed my flickering issue as images complete the transition with no problems.

Also, if you are encountering flickering as well when switching between full screen videos or full screen videos and images (png's in my case), delete/comment out this line:

self.mplayer.fullscreen = YES;

the problem will be gone after that.

Need Your Help

failed to set parent for annotation in MATLAB

matlab user-interface annotations parent

I have created a figure in MATLAB, and an axis inside the figure.

How to move database for a website from one computer to another?

sql sql-server database iis-7

I need some help with moving the database files (.mdf, .ldf) for a website (hosted on IIS) from one computer to another computer. The website is running under IIS under one computer and there is an...