• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:] (From: Steve Christensen <email@hidden>)

  • Prev by Date: NSTextView scaled using scaleUnitSquareToSize - alignment issue
  • Next by Date: get a dictionary out of an array of dictionaries by a criterion
  • Previous by thread: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
  • Next by thread: Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]
  • Index(es):
    • Date
    • Thread