I am developing an iPhone application in which I play videos using MPMoviePlayerController.
Sometimes, some of the videos don’t play immediately after I call play on MPMoviePlayerController.
I have called prepareToPlay and in the notified method of MPMediaPlaybackIsPreparedToPlayDidChangeNotification, I am calling play on MPMoviePlayerController.
Could someone help in identifying the problem here?
Thanks,
Laxmilal
From my answer in a similar thread (reducing-the-initial-delay-when-playing-remote-video-content) – Note this fragment of the solution is valid for both, remote and local video content.
Use the
MPMoviePlayerController.movieSourceTypeproperty when initializing yourplayer to cut down the media
recognition delay.
From the MPMoviePlayerController Class Reference: