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.
source to share
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.
source to share
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.
source to share