Catching errors with MPMoviePlayerController
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