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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to