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

MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
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 can later load a movie the user chooses thusly: NSURL *fileUrl =