あなたのアプリはMPMediaPlayerから通知を受け取るように登録していますか?私はこれらのタイムアウトを見ていないので、あなたのエラーで満たされたuserInfoでMPMoviePlayerContentPreloadDidFinishNotificationを返すかどうかわかりません。 MPMoviePlayerController.hから
:のMoviePlayerのサンプルコードから
MP_EXTERN NSString *const MPMoviePlayerContentPreloadDidFinishNotification; // userInfo contains NSError for @"error" key if preloading fails
:
// Register to receive a notification that the movie is now in memory and ready to play
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePreloadDidFinish:)
name:MPMoviePlayerContentPreloadDidFinishNotification
object:nil];
// Register to receive a notification when the movie has finished playing.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
// Register to receive a notification when the movie scaling mode has changed.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(movieScalingModeDidChange:)
name:MPMoviePlayerScalingModeDidChangeNotification
object:nil];
私のアプリが通知のために自身を登録し、しかし、私はMPMusicPlayerを使用して、いないムービープレイヤーです。それでも、見る価値のある方向性のようです。ありがとう! – casademora