Re: MPMoviePlayerController doesn't work with remoteControlReceivedWithEvent

2012-08-11 Thread Mr. Gecko
Apparently, MPMoviePlayerController isn't the way to go for this. What I ended up doing was using MPMoviePlayerViewController and overrode the remoteControlReceivedWithEvent to customize the controls. Below is my current code which I am using. @interface MGMMoviePlayerViewController : MPMovieP

Re: MPMoviePlayerController, full-screen, and rotation

2012-02-03 Thread Fritz Anderson
Thanks for the suggestion. Following your lead, I called +attemptRotationToDeviceOrientation after installing, and again after removing, the movie-player controller. I made this my -shouldAutorotateToInterfaceOrientation: method: - (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrie

Re: MPMoviePlayerController, full-screen, and rotation

2012-02-03 Thread Fritz Anderson
On 3 Feb 2012, at 11:21 AM, Fritz Anderson wrote: > Further, the bar button that split-view detail views must put up in portrait > orientation is shifted right (apparently proportionally to the number of > rotations). Opening the master-view popover in landscape orientation > blacks-out the ma

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Heath Borders
You could do key-value observing on currentPlaybackRate. http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfp/MPMediaPlayback/currentPlaybackRate -Heath Borders heath.bord...@gmail.com Twitter: heathbor

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Matt Neuburg
On Thu, 28 Jul 2011 15:06:29 -0400, Steve Kostrey said: >I've implemented MPMoviePlayerController (iPhone/iPad) and I'm playing videos >without trouble but I'm not sure how to receive an event from the Fast forward >overlay button. >I've tried everything the documentation suggests about remote c

Re: MPMoviePlayerController

2011-04-16 Thread Jeffrey Walton
On Sat, Apr 16, 2011 at 2:19 PM, Eli Bach wrote: > > On Apr 16, 2011, at 11:35 AM, Jeffrey Walton wrote: > >> Format: ACV0 Media, 640x480, Millions, AAC (Protected), 2 channels, 44100 HZ > > I'm 90% sure that it's the "(Protected)" part that prevents it from playing > in non-Apple created video p

Re: MPMoviePlayerController

2011-04-16 Thread Jeffrey Walton
On Sat, Apr 16, 2011 at 12:39 PM, Matt Neuburg wrote: > > On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote: > >> >> For what its worth, Apple's sample [1] is broken - it can't even play >> the movie it supplies with its sample. >> >> Jeff >> >> [1] >> http://developer.apple.com/library/ios/#samp

Re: MPMoviePlayerController

2011-04-16 Thread Eli Bach
On Apr 16, 2011, at 11:35 AM, Jeffrey Walton wrote: > Format: ACV0 Media, 640x480, Millions, AAC (Protected), 2 channels, 44100 HZ I'm 90% sure that it's the "(Protected)" part that prevents it from playing in non-Apple created video players. Eli __

Re: MPMoviePlayerController

2011-04-16 Thread Jeffrey Walton
On Sat, Apr 16, 2011 at 11:44 AM, Matt Neuburg wrote: > On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said: >>The problem appears to be with the size of the M4V > > I had trouble with this too, the first time I tried to use > MPMoviePlayerController. Consult the specs for the hardware first

Re: MPMoviePlayerController

2011-04-16 Thread Jeffrey Walton
On Sat, Apr 16, 2011 at 12:39 PM, Matt Neuburg wrote: > > On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote: > >> >> For what its worth, Apple's sample [1] is broken - it can't even play >> the movie it supplies with its sample. >> >> Jeff >> >> [1] >> http://developer.apple.com/library/ios/#samp

Re: MPMoviePlayerController

2011-04-16 Thread Matt Neuburg
On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote: > > For what its worth, Apple's sample [1] is broken - it can't even play > the movie it supplies with its sample. > > Jeff > > [1] > http://developer.apple.com/library/ios/#samplecode/MoviePlayer_iPhone/Introduction/Intro.html That's a well

Re: MPMoviePlayerController

2011-04-16 Thread Jeffrey Walton
On Sat, Apr 16, 2011 at 11:44 AM, Matt Neuburg wrote: > On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said: >>The problem appears to be with the size of the M4V > > I had trouble with this too, the first time I tried to use > MPMoviePlayerController. Consult the specs for the hardware first

Re: MPMoviePlayerController

2011-04-16 Thread Matt Neuburg
On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said: >The problem appears to be with the size of the M4V I had trouble with this too, the first time I tried to use MPMoviePlayerController. Consult the specs for the hardware first. For example, here are the specs for an iPad 2: http://www.a

Re: MPMoviePlayerController

2011-04-14 Thread Jeffrey Walton
On Wed, Apr 13, 2011 at 12:15 PM, Jeffrey Walton 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 appear

Re: MPMoviePlayerController

2011-04-13 Thread Matt Neuburg
On Wed, 13 Apr 2011 12:32:27 -0700, Kyle Sluder said: > >I don't know what it is about Apple's documentation, but something >about it trips everyone up when they first get to the platform. I'm >certainly among that crowd. It's not that things aren't sufficiently >documented; usually they are, with

Re: MPMoviePlayerController

2011-04-13 Thread Jeffrey Walton
On Wed, Apr 13, 2011 at 3:32 PM, Kyle Sluder wrote: > On Wed, Apr 13, 2011 at 11:39 AM, Jeffrey Walton wrote: >> Below is the rabbit hole I went down trying to play a Movie. I would >> give my left arm for a return code right about now. With a error code, >> I could search for "MPMoviePlayerContr

Re: MPMoviePlayerController

2011-04-13 Thread Jeffrey Walton
On Wed, Apr 13, 2011 at 3:12 PM, Kyle Sluder wrote: > On Wed, Apr 13, 2011 at 11:39 AM, Jeffrey Walton wrote: >> On Wed, Apr 13, 2011 at 1:26 PM, Kyle Sluder wrote: >>> On Apr 13, 2011, at 9:15 AM, Jeffrey Walton wrote: >>> [ SNIP ] >>> >> >> MPMoviePlayerPlaybackDidFinishNotification " ... is

Re: MPMoviePlayerController

2011-04-13 Thread Kyle Sluder
On Wed, Apr 13, 2011 at 11:39 AM, Jeffrey Walton wrote: > Below is the rabbit hole I went down trying to play a Movie. I would > give my left arm for a return code right about now. With a error code, > I could search for "MPMoviePlayerController play error 0xX" and > probably get dozens of que

Re: MPMoviePlayerController

2011-04-13 Thread Kyle Sluder
On Wed, Apr 13, 2011 at 11:39 AM, Jeffrey Walton wrote: > On Wed, Apr 13, 2011 at 1:26 PM, Kyle Sluder wrote: >> On Apr 13, 2011, at 9:15 AM, Jeffrey Walton wrote: >> >>> >>> >>> Unfortunately, PLAY is not documented [2]. In addition, I can't find a >>> delegate (as with other controllers) and t

Re: MPMoviePlayerController

2011-04-13 Thread Quincey Morris
On Apr 13, 2011, at 11:39, Jeffrey Walton wrote: > Silly me. I went looking for documentation on MPMoviePlayerController > PLAY in MPMoviePlayerController's documentation. Unfortunately, it's just something you need to learn about Apple's style of documentation -- when consulting the documentati

Re: MPMoviePlayerController

2011-04-13 Thread Jeffrey Walton
On Wed, Apr 13, 2011 at 1:26 PM, Kyle Sluder wrote: > On Apr 13, 2011, at 9:15 AM, Jeffrey Walton 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 er

Re: MPMoviePlayerController

2011-04-13 Thread Kyle Sluder
On Apr 13, 2011, at 9:15 AM, Jeffrey Walton 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 e

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
I was able to replicate my issue. In my original code, I was only allowing the movie to be played with the embedded controls. When I set the contentURL a second time, my embedded controls were not showing, so I couldn't play the movie again. As I mentioned previously, Matt's code worked great.

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
Your code worked! Thanks! The main difference between our snippets was that you added the MPMoviePlayerController's view directly to the UIViewController's view rather than putting it in a holder view (which I doubt would matter) and that you aren't using the embedded controls. I'll post back wh

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
On Mon, 21 Mar 2011 22:59:04 -0500, Heath Borders said: >That's exactly what I did. I have a brand new project with just a >ViewController with 3 views > >[SNIP ridiculous quantities of code] I can't read that. And it isn't what I suggested you do. I said make a *minimal* project. Enough to pr

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
That's exactly what I did. I have a brand new project with just a ViewController with 3 views: 1 to hold the MPMoviePlayerController's view, 1 button for my first movie, and 1 button for my second movie. When the buttons are clicked, I create NSURLs from the appropriate files. I've included my co

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
On Mon, 21 Mar 2011 16:04:52 -0500, Heath Borders said: >I create an embedded MPMoviePlayerController thusly inside my loadView method: > >self.moviePlayerController = [[[MPMoviePlayerController alloc] init] >autorelease]; > >// add to view, setup moviePlayerController's view frame, etc > >And I

Re: MPMoviePlayerController playhead position, setting markers to trigger events and notifications (MPMediaPlayback Protocol Reference)

2010-04-11 Thread Kevin Callahan
On Apr 11, 2010, at 8:18 PM, Kevin Callahan wrote: > As a user scrubs forward and backward through movie using > MPMoviePlayerController, what's the most efficient way to know where the > playhead is at? > Is there a simple timeStamp one can grab? > Is there a way to set markers to trigger ev