Re: MPMoviePlayerController
Re: MPMoviePlayerController
- Subject: Re: MPMoviePlayerController
- From: Kyle Sluder <email@hidden>
- Date: Wed, 13 Apr 2011 10:26:02 -0700
On Apr 13, 2011, at 9:15 AM, Jeffrey Walton <email@hidden> wrote:
>
>
> Unfortunately, PLAY is not documented [2]. In addition, I can't find a
> delegate (as with other controllers) and there are no notifications
> covering errors [2]. Finally, the error log is for network streams
> [2].
Not sure about the error handling, but MPMoviePlayerController is documented to conform to MPMediaPlayback, the documentation for which describes -play: http://developer.apple.com/library/ios/documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfm/MPMediaPlayback/play
> More philosophical: why are the APIs so inconsistent? Why is there no
> readily apparent way to consistently retrieve error information
> (Windows has GetLastError and Linux has errno)?
And you've never seen "An error occurred: There was an error (E_SUCCESS)" on Windows, or similar errno stomping on *nix?
What UNIX libraries do you regularly use that set errno?
Returning errors from the place they happen, or providing a block argument that can act as an error handler, or notifying a delegate object than an error has occurred in an operation it requested before are all vastly superior to the "last failure gets to write an oh-so-descriptive integer to a shared memory location."
--Kyle Sluder_______________________________________________
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