Re: MPMoviePlayerController
Re: MPMoviePlayerController
- Subject: Re: MPMoviePlayerController
- From: Jeffrey Walton <email@hidden>
- Date: Thu, 14 Apr 2011 14:58:06 -0400
On Wed, Apr 13, 2011 at 12:15 PM, Jeffrey Walton <email@hidden> wrote:
> Hi All,
>
> I'm trying to play a M4V acquired from iTunes [1]. The movie is local
> and was transferred into my sandbox using iTunes via file sharing.
>
> Working from a Hillegass example ('Playing Movie Files', p. 294), the
> player appears to load/display but does not play.
>
> 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].
>
> How does one determine errors when using MPMoviePlayerController?
>
> 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)?
>
The problem appears to be with the size of the M4V. For example,
Hillegass's Chapter 20 sample ('Layer.m4p') at 2.2 MB plays as
expected. The Simpsons episode, at 230 MB, does not play. The player
moves from a 'ready' state to a 'playing' state and then immediately
back to a 'ready' state without a Finished notification or error.
If anyone has experienced similar, work arounds would be appreciated.
So far, I have only figured out how to crash Xcode while the app was
under the debugger.
Jeff
_______________________________________________
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