Iphone – Problem with iPhone 3.0 MPMoviePlayerController long wait time to display the video player on screen

iphoneiphone-sdk-3.0

Anybody is seeing this behavior on iPhone 3.0?

On my app, touching on the video link/button will take about 4-5 seconds before the movie player will show up on the screen. This doesn't look right.

Anybody have any suggestion to decrease this "wait time"?

Best Answer

I saw that behavior too. I wonder if the wait time might be the time to find the appropriate decoder for the video format (because I saw some logs in the console at that moment indicating that some codec was not found).

Anyway, I set a waiting screen in my app, and wait for the MPMoviePlayerContentPreloadDidFinishNotification notification. Then I launch [myMoviePlayerController play].

Hope that will help.

Related Topic