mpmovieplayercontroller

Get the current position of a played movie (MPMoviePlayerController currentPlaybackTime doesn't work)

Hello, hopefully someone has an answer - I am searching now for hours. I want to get the position of an movie. I tried it with MPMoviePlayerController, but this class doesn't support the MPMediaPlayback property called "currentPlaybackTime". (the funny thing is, that the MP Music PlayerController has this property) Therefore I can't ...

Using Quicktime chapters/bookmarks in MediaPlayer framework on the ipad

Hi, I am using the MediaPlayer Framework on the ipad to play movies, specifically the MPMoviePlayerController class. The Quicktime movie I am loading has a chapter track with bookmarks. How can I access these bookmarks in my app? Thanks! ...

Play Lengthy video using NSURL in MPMoviePlayerController problem?

Hi I have a lengthy video in server,if i try to play that video in iphone using the code below NSURL *url = [NSURL URLWithString:@"http://somelengthyvideo.mp4"]; player = [[MPMoviePlayerController alloc]initWithContentURL:url]; [player play]; i am facing the following problem. the buffering time is very slow, compare to the video p...

How to hide control before MPMoviePlayerController movie is played?

Assume iOS 3.2 or later. What is the proper sequence of command to play a move with the controls initially hidden. When the movie is playing, the user has the option to tag on screen and show controls. Thanks! My (control not hidden) code: - (void)playMovie { NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResour...

MPMoviePlayerViewController stops playback when unplugging headphones

Hi there, I'm currently developing a web-tv application that uses MPMoviePlayerViewController resp. MPMoviePlayer to playback streaming video content on the iphone. the issue I've got here is that once i unplug my headphones (while watching tv) the player stops. Due to the fact that I'm not showing the standard controls (previous butto...

Why does MPMoviePlayerController prevent resumption of audio after the movie ends?

I have a class that plays a repeating background music loop with an AVAudioPlayer, and on specific occasion, plays a full-screen video with its own sound track using MPMoviePlayerController. In order to to have only one track at a time, I stop the background music before launching the video: -(void)startVideo{ [backgroundMusic stop]...

MPMoviePlayerController questions, best practices

I have any number of thumbnail images that, when tapped, will play a different video (fullscreen). I have never been clear on whether I should keep one MPMoviePlayerController object in my view controller and have it play whichever url according to the thumbnail that was tapped, or create a new MPMoviePlayerController each time. What is ...

playing intro movie on ipad

i am trying to play an intro movie (like a splash screen). it used to work fine for sdk 3.0 but now i am doing it for iPad. and its not running movie instead it just show black screen before view appears. here is my code (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSStr...

MPMoviePlayerController on iPhone - Streaming or progressive download ?

Hi, In my iPhone App I need to show the videos which are in Flash format. I asked the client to change the videos in iPhone compatible format. They stored the converted the video on a server and I am able to show the video using MPMoviePlayerController. Now we need to store around 25 videos (Each around 300 MB) and access them via iPh...

MPMoviePlayerViewController freezes when exiting fullscreen

I'm playing a video with MPMoviePlayerViewController on the iPad. Problem is: I can pinch the video to go in fullscreen mode, but if I try to pinch again to go back to window mode it freezes. It doesn't crash the app, it just "pauses" the video and I can't exit fullscreen mode anymore. Has anyone experienced this? Thanks. Edit: it see...

MPMoviePlayerController : a way to get used bandwidth ?

Hello everyone ! I would like to check used bandwidth when playing a video with MPMoviePlayerController to be able to play a video which matched client bandwidth. For now, I download a part of my file by using NSURLConnection and I can find bandwidth. But I think it's not a good idea to download more data than expected (and the goal is...

MPMoviePlayerController in iPad shows first frame but disappears after pressing play

Hello all, After selecting a movie from the camera roll the first frame of the movie appears but after pressing play the movie disappears and won't play... Been racking my brain for days and can't figure this one out. The code used to work but doesn't seem to work on the latest version of the SDK - (void)imagePickerController:(UIImage...

[iPhone] MPMoviePlayerController not refreshing or accessing m3u8 on Live HTTP Streaming

I have a Live HTTP Streaming system working on a web server, and I want to see the stream on the iPhone. To achieve that, I instantiate a new MPMoviePlayerController and initialize it with the URL of the .m3u8 playlist, but I'm having some problems: If I try it with an already generated playlist, with the streaming already stopped, I g...

MPMoviePlayer overlay in fullscreen mode (iPad)

Hello Everyone, I want to add a button on my video player when it is playing in fullscreen. I created an Overlay on my videoplayer and it's working very well on an iPhone. I tryed to same thing on a iPad, but the button never appear. Here's my code : NSArray *windows = [[UIApplication sharedApplication] windows]; if ([windows count]...

Getting blank white screen when presenting MPMoviePlayerViewController

Anybody have trouble with an MPMoviePlayerViewController giving a white screen when it is presented? - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { MPMoviePlayerViewController* mpViewController = [[MPMoviePlayerViewController alloc] init]; [[mpViewController moviePlayer] setContentUR...

Using MPMoviePlayerController - Can we Add Custom Buttons?

Hi Guys, I am creating an app that plays a video. This video is promotional material for a company. It details some of their products. What I want to do is create a button that can "jump" to a specific product. If you click the Product A button, you can jump to the section of the video about Product A. I've got a basic (and I mean basic...

Mpmovieplayercontroller in iPad - No Video only audio

Hello, I am developing an iPad app where I am playing the videos stored within the app itself. I am representing the list of videos in a table view. When I select a row, the video corresponding to that row plays. But while performing this, sometimes screen goes black , no video is visible but only audio is playing. I am aware that mak...

MPMoviePlayerController vs. MPMoviePlayerViewController

I'm new to iPhone development. Just wondering what the difference is between the MPMoviePlayerController and the MPMoviePlayerViewController. Also, more generally, what is the difference between a controller and a view controller? I know that you use a controller to construct a view (as with MPMoviePlayerController.view), so what does a ...