Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
- Subject: Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
- From: Dave Camp <email@hidden>
- Date: Wed, 09 Mar 2011 09:12:03 -0800
I saw that assertion yesterday in a bit of code that was accidentally calling a MPMoviePlayerController method from a secondary thread.
Dave
On Mar 8, 2011, at 5:01 PM, Steve Christensen wrote:
> I'm seeing the above assertion in an app running on iOS 4.2.1. It then throws an NSInternalInconsistencyException with the reason: "movie player <MPMoviePlayerControllerNew: 0x446fbe0> has wrong activation state (1)."
>
> The setup has a MPMoviePlayerController instance that is playing a local audio file. There is also a UIWebView whose HTML contains an <audio> tag. When the play control is tapped, I see a MPMoviePlayerPlaybackDidFinishNotification notification with a reason of MPMovieFinishReasonPlaybackEnded, then gdb shows the assertion failure and exception and dumps the backtrace (below).
>
> If I start playing the HTML's audio then start the MPMoviePlayerController's audio, the HTML's audio fades out and the MPMoviePlayerController's plays, so there's probably some subtle difference I'm missing. Any ideas what I might be doing wrong or what to look at? Everything is working great except when it comes time for dueling audio.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden