views:

518

answers:

5

I am having some serious issues and annoyances with MPMoviePlayerController. In my app you can watch trailers for some movies in .mov format.

I have tested with a friend and had users report that it does not work on their device, which are all 3G. I have tested on my own, a 3GS and playback works fine. I have tried on a 1st gen iPhone and it doesn't work. So I am lead to believe it's a memory issue, and that it's simply stopping the playback and returning to the previous screen.

Below is the code I use to launch the player, which is straight out of the MoviePlayer example from Apple.

MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:trailerURL]];
if (mp) {
    self.moviePlayer = mp;
    [mp release];
    [self.moviePlayer play];
}

I have tried to check the NSError from the notifications, but the only thing I get is "An unknown playback error occurred" for both the localizedDescription and localizedRecoverySuggestion, making it impossible to figure out exactly why it's not working.

I have seen many examples of people who just have issues with the movie player, but it's starting to annoy me that it sometimes seem to work fine and other times it just doesn't (again, appearing like a memory issue).

Thanks for any help/feedback provided

A: 

Are all the phones running at least 3.0?

Rhythmic Fistman
Yes. Tested on 3.1.3 and 3.1.2, same issue.
Canada Dev
Nothing on the system log? Does the Instruments CPU/memory profiler tell you anything?
Rhythmic Fistman
A: 

sorry to bump an old thread, but was any progress made here? I get the same error: error = Error Domain=MediaPlayerErrorDomain Code=-3 UserInfo=0x3a09cd0 "An unknown playback error occurred"

BoomShaka
A: 

Same problem here.

Also got a "wait_fences: failed to receive reply: 10004003"

Anyone?

RickyA
A: 

I'm also having strange issues while trying to playback some remote (http://) stream with the player. The issue does not seem to come from iPhone 3G or iPhone 3Gs but I get different behavior between 3G network and wifi : it goes fine with Wifi and I get the same ""An unknown playback error occurred" from the notification center during the preload phasis when I try to play using 3G network :/ Does anybody experience the same thing ?

yonel
A: 

@BoomShaka How did you resolve your problem.I am also getting the same error in playing vieos from the remote server.

anurag