mpmovieplayercontroller

Iphone SDK: MPMovieplayer freezes

I have a "Zoom in" Animation Video that is played when switching from one view to a subview. When switching back to the main view, i tried to play the same video backwards like that: MPMoviePlayerController *mp; .... mp.currentPlaybackTime = mp.duration; mp.currentPlaybackRate = -1.0; but occasionally the video freezes at some poin...

MPMoviePlayerController duration is not being updated

I have a MPMoviePlayerController, and I can successfully play a (local) video with it. The duration property is not being set to the runlength of the video - even after I receive a MPMovieDurationAvailableNotification event, the value remains set to 0. Has anyone seen this before? ...

Volume control in MPMoviePlayerController

I am trying to figure out how to adjust the volume of a movie played with MPMoviePlayerController on the iPhone without using the slider or the volume buttons on the side of the phone. Is it even possible to do this with code in a Apple approved way? I haven't been able to find anything in the APIs that relate to changing or setting th...

Can initialPlaybackTime do not preform animation ?

As i use initialPlaybackTime when playback a movie,the thumb show a animation from the beginning to where i set my initialPlaybackTime,but i do not like this at all ,could i enable it? ...

iPhone - why the status bar is hiding when playing movie using MPMoviePlayerController

One good feature in iOS 4 is that we can resize the movie player. I'm using MPMoviePlayerController to play a video file. I'm resizing the view to show it in half screen only. When video is being played, the status bar is hiding and it shows white box in place of status bar. When video completes playing, its not showing status bar again....

How can I know users click fast forward and fast rewind buttons on the playback controls in iPhone

I want to implement the following things, App is running a music or video (using MPMoviePlayerController) in background. User double clicks the home button and go to the first screen showing playback controls (fast rewind, play or pause, fast forward buttons) User click fast rewind or fast forward button. Then app play previous or next...

iPad MPMoviePlayerController - landscape video at launch

I'm having difficulty getting video to play in landscape at launch. My app supports all interface orientations in the plist file. If I start a view controller at launch then the app loads in the correct orientation. However if I start a video the orientation is fixed in portrait at startup. How can I get around this? [UIApplication s...

iphone sdk: how to end movie on tap of the screen?

I have MPMoviePlayerController, with which I play a movie. I have my movieControlMode MPMovieControlModeHidden. I want this behaviour: while the movie plays, if tap on the screen is received, stop it, release the movie player. How can this be done? mMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:mMovieURL]; [mMoviePla...

iPad view in incorrect orientation after dismissMoviePlayerViewControllerAnimated

My iPad app displays a movie full screen using the convenient MPMoviePlayerViewController class. I present it like this: [self.hostController presentMoviePlayerViewControllerAnimated:playerViewController]; And later, when notified that playing is done, I dismiss it like this: [self.hostController dismissMoviePlayerViewControllerAni...

iPad MPMoviePlayerController - Disable Fullscreen

Is there a way to disable the fullscreen button of the MPMoviePlayerController ? ...

Hide StatusBar from MPMoviePlayerController

Hi everyone, I've been struggling with a very annoying problem all day long and I hope I could find help on this board. I'm using an MPMoviePlayerController to play a fullscreen movie on iPad and I can't figure how to remove the status bar which is always displayed despite all my efforts to make it go to hell. Here is the code of the ...

Can i use MPMoviePlayerController and MPMusicPlayerController at the same time ?

Hi, all ! Can I play sound by MPMusicPlayerController (from iPod) and video by MPMoviePlayerController at the same time? I need change tracks sometime (use a lot of tracks for any video). My video has no sound. When i run playing track it is playing good, but when i loading video and [MPMoviePlayerController play], then video is playin...

MPMoviePlayerController thumbnailImageAtTime returns empty UIImage

I'm working on an iPad app that plays a video with MPMoviePlayerController and - based on user interaction - uses thumbnailImageAtTime to try to grab an image from the video. I've tried using both options MPMovieTimeOptionNearestKeyFrame and MPMovieTimeOptionExact. Regardless of which option, I find that I sometimes get back an empty U...

How to change UIModalTransitionStyle for MPMoviePlayerViewController

Hi all. When I use the MPMoviePlayerViewController, I don't seem to be able to change the modalTransitionStyle to anything other than the default slide up animation. Has anyone else managed to get this to work? MPMoviePlayerViewController* theMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath...

How to detect movie preloaded/failed on iOS4?

In 3.0, I could register for MPMoviePlayerContentPreloadDidFinishNotification and detect if the movie preloaded or failed, depending on whether there was an error object. Can anyone tell me the equivalent of the two cases for iOS4? [Update: Responding to the first comment here because the max comment length is too short.] If you succe...

Rotate MPMoviePlayerController to Landscape - iPhone SDK

Hello everyone, I am trying to rotate my MPMoviePlayerController to landscape view, but it always stays in portrait mode. I am doing this in a UIViewController and I still can't rotate my MPMoviePlayerController when I am in full screen mode. Do I have to do something to the shouldAutorotatetoOrientation method? If anyone knows how to d...

Toolbar floats over the Movie launched with MPMoviePlayerViewController

Hi All, I am trying to launch a movie from within a subview of a toolbar view. The movie plays but the problem is that toolbar floats on top of the movie. I believe the MPMoviePlayerViewController is supposed to take care of this for us because it opens as a modal view. But I am not sure why this is case for me... Any help to this ...

Multiple MPMoviePlayerControllers on iOS 3.2/4.0

Hi guys, The question is can I have two instances of MPMoviePlayerController simultaneously in one UIViewController? I'm trying to create a smooth transition between two movies in iPad app, but when I create the second MPMoviePlayerController the playback of first one is stopped and can't be resumed. I didn't found any restriction for h...

MPMoviePlayerController for iPhone App on iPad

For some reason, the expand button the arrow points to in the screenshot below causes the view controller that initiated video playback to animate back over top of the video, but without stopping video playback which means you can still hear the audio even though the video is no longer visible. I've tried other movie control styles, but ...

How to get current playing time of MPMoviePlayerViewController after seeking ?

How to get current playing time of MPMoviePlayerViewController after seeking ? Originally I am using a NSTimer to count the time played, but after scrubbing / seeking, the time recorded does not count the amount of time seeked. Any way to know current time of video or amount of time scrubbed ? ...