• 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
Catching errors with MPMoviePlayerController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Catching errors with MPMoviePlayerController


  • Subject: Catching errors with MPMoviePlayerController
  • From: Rogerio de Paula Assis <email@hidden>
  • Date: Tue, 9 Nov 2010 08:12:54 +1100

Hi guys,

Is there a way of catching exceptions (particularly for network errors
/ no connection available) when using a MPMoviePlayerController?

I have reviewed the available documentation and realise I can get a
notification for
moviePlayerLoadStateChanged:(NSNotification*)notification.

Problem is the loadState constants available don't cater for error handling:

MPMovieLoadStateUnknown
MPMovieLoadStatePlayable
MPMovieLoadStatePlaythroughOK
MPMovieLoadStateStalled (in case you are wondering this doesn't get
called during network errors for some reason?)

There's a deprecated MPMoviePlayerContentPreloadDidFinishNotification
that provides a userInfo dictionary with an "error" key but nothing
for iOS 3.2 and above.

Any help would be very much appreciated.
Cheers,
Rog
_______________________________________________

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

  • Prev by Date: Improve Download Speed using multiple connections
  • Next by Date: Issues in specifying the file extensions for NSOpenPanel
  • Previous by thread: Re: Improve Download Speed using multiple connections
  • Next by thread: Re: Catching errors with MPMoviePlayerController
  • Index(es):
    • Date
    • Thread