MPMoviePlayerController issue after YouTube playback

I have it MPMoviePlayerController

and it plays great when I play .mov from the server. I can play multiple movies in a row and I don't face any problems.

However, I also need to be able to play some YouTube videos and embed UIWebView

, which allows me to play YouTube videos. Multiple YouTube videos cannot be played. The problem occurs if I play a video in .mov format and then try to play the video on YouTube. The terrain status bar appears on the screen, but all controls are still in portrait mode. Sound works, but no video; just a black screen.

+2


source to share


4 answers


This actually sounds like a bug to me ... you should consider reporting this to Apple if you haven't already.

Sounds vaguely related to another bug I ran into (sometimes the player continues to play audio after the movie is closed and acts the next time it starts). The workaround I found was to install



player.initialPlaybackTime = -1.0;

      

when i unload the player. It's a long shot, but you can try.

0


source


The player on the simulator has several known bugs, see also: problems with video playback on iphone



Have you tried it on the device itself? I don’t bother testing replay on a simulator all these days.

0


source


I've seen this too, and it's definitely Apple's fault. Another issue you are facing is that clicking on the status bar to scroll to the top of the table after playing a YouTube video does not work.

0


source


I saw this in one of my applications. On the bottom line, you need to make sure you only have one instance of the object MPMoviePlayerController

in your application. If you have more than one, all hell breaks loose in OS 3.x, including the symptoms you mention.

0


source







All Articles