mpmovieplayercontroller

MPMoviePlayerViewController playing only audio no video on simulator??

i am using the following code to play a video from a url but when the video loads only audio is played and no video is shown on simulator..right now i cant test it on iphone 4.0 device...is there a problem with the simulator or is MPMoviePlayerViewController is not the right way?? NSString *videoFilepath = @"http://www.migital.com/Hema...

playing video and audio using MPMoviePlayerContoller

Hi In my application I am using MPMoviePayerController class's object to play audio(.mp3) files as well as videos(.m4v) files directly from the server. Few lines of code:-- MPMoviePlayerController *moviewPlayer = [[MPMoviePlayerController alloc initWithContentURL:[NSURL URLWithString@"myURLGoesHere"]; moviePlayer.view.frame = self.view....

MPMoviePlayerViewController iPad Memory Leak

My movie player leaks memory only on the iPad and only when the "Done" button is clicked. If the movie plays to completion then it cleans itself up properly. Here is the play code: mViewPlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[self movieURL:@"mymovie"]]; [self.parentViewController presentModalViewController:mV...

iPad MoviePlayer refuses to play video until device restart

I have a very strange bug in a shipping iPad/iPhone app that I can't fix/track down. My app plays video in a standard MPMoviePlayerController but with the interface hidden and my own buttons to play and stop. That works fine but sometimes, after a few times of use, my app refuses to play any further video. This happens only on the iPad...

play video from URL retrieved from ALAsset in iOS

I'm still fairly new to Obj-C and the idea of blocks. I read this post about displaying images from url retrieved from ALAssets: http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone Besides being able to view picture files in a UITableView using the ALAsset framework, I want to be able to pl...

iphone - MPMoviePlayerController - How can I decrease volume of the video programatically

I'm using MPMoviePlayerController to play a video which has audio as well. Its working fine. I'm hiding the default controls. So no controls are showing on the video. I want to place a slider on the video (i successfully placed a slider as well over the video). With the slider, I want to control the volume of the video that is being play...

iPad MPMoviePlayerController Aspect Ratio Button closes movie

Hi all. I am loading up a video file in an iPad application using the MPMoviePlayerViewController. Basically, click the button, watch the video. It works great, unless you press the "Aspect Ratio" button (the one which looks like two arrows) which normally sets the video to autofit. In this case, it just closes the movie, and procs a MP...

sdk 3.2,MPMovie PlayerViewController after press done btn, it go to blank page

-(IBAction)play{ NSString *url = [[NSBundle mainBundle] pathForResource:@"mm_v0" ofType:@"mp4"]; NSLog(@"Filepath is: %@",url); MPMoviePlayerViewController *playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:url]]; [[NSNotificationCenter defaultCenter] addObserver:self ...

What's wrong with my MPMediaPlayerController?

Hi all I've create simple movie player in iPhone development. But i got just only vedio's voice. Here is my code (when button click), -(IBAction)playMe{ NSBundle *bundle=[NSBundle mainBundle]; NSString *moviePath=[bundle pathForResource:@"iiii" ofType:@"mp4"]; NSURL *movieURL = [NSURL fileURLWithPath:moviePath]; MPMovieP...

MPMoviePlayerController throws errors ONLY in universal app

My app plays a video in fullscreen mode when the app is started. Everything is working flawlessly from 3.0 to 4.1. However, if I compile the same code for a universal app, it will work on the iPad, but will not work on the iPhone (simulator) anymore. Has anyone solved this problem? Here's the code: if ([self respondsToSelector:@selec...

How can I get the current contentURL when MPMoviePlayerViewController playing a XXX.m3u8 file??

Hey,every humen. When i use .m3u8 file for playing,how can I get the current contentURL when MPMoviePlayerViewController playing a XXX.m3u8 file?? The .m3u8 file‘s content is: EXTM3U EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=9600 http://XXXXX/test03-1/test03-1.stream/playlist.m3u8 EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=5120 http:/...

How can i get the http request when MPMoviePlayerController just playing a http URL??

Hi,every one. How can i get the http request when MPMoviePlayerController just playing a http URL?? Thank you very much... ...

ios MPMoviePlayerController movie controls do not show the correct time.

I have following code that I use to play a selected portion of a movie clip. The movie plays okay. But the scrubber bar does not reflect the correct start stop time. Also, the forward and rewind buttons take the clip beyond the segment that was specified. Why is this and can we fix it? TIA. MPMoviePlayerViewController *mp = [[MPMov...

How to play video using MPMoviePlayerController in iphone?

Hi Guys, This is my code for load the video using MPMoviePlayerController my issue is i can hear the voice of the video but can't see the video. can any one give me the solution!!! note:"AddRunningClient starting device on non-zero client count" this message is display while i run my application in console now i'm working IO...

Playing iPhone movies through TV out

Is there any way to emulate the Videos app such that we still maintain controls on the device (iPad/iPhone), but sends the video out through the cables to the TV? I looked into screen mirroring, but it's way too slow for videos, and regardless, the UIGetScreenImage() used by screen mirroring is no longer allowed by Apple. The Videos app...

MPMoviePlayerController iOS 3 to 4, get current time

Hi everyone ! I need to use a property defined in MPMoviePlayerController called currentTime (in iOS 3). It seems to be a private property but not in iOS 4, which is now called currentPlaybackTime. I want my app to be launched starting iOS 3.0. So I wrote this : @implementation MPMoviePlayerController(extended) -(double)time { ...

Usage of private API properties in older iOS, public in newer iOS.

Hello everyone ! I know it is forbidden to use private API functions or classes, because they can change in a future version of iOS. So I wondering if it is allowed if a private function is now public in a new iOS. My example is MPMoviePlayerController which has a private property called currentTime in iOS before 3.2. Starting version ...

Videos are not playing in iPhone simulator when playing from remote server

Hi I am trying to play the videos using MPMoviePlayer Class. The problem is I am able to play videos(.m4v) on simulator when playing locally(i.e; from bundle) but when I am trying to play the same video uploaded to a remote server, the video is not playing.Infact I get the error Error Domain = MediaPlayerErrorDomain Code = -3 userInf...

mirror an mpmovieplayercontroller to tvout

I am looking for a way of mirroring videos to the TVOut on an iTouch, not in fullscreen. For my code, I have used Rob Terrell's screen mirroring example here: http://www.touchcentric.com/blog/archives/123 and this one as well: http://www.e-string.com/content/screen-mirroring-ipad I have used image = UIGraphicsGetImageFromCurrentImageCon...

MPMoviePlayer load and play movie saved in app documents

I am writing an application that stores the movies in the photo roll into the local documents folder for the app. I can play remote movies using the MPMoviePlayer, however trying to play a movie stored in the documents folder for the app always returns MPMovieLoadStateUnknown. The notifications are all getting sent and received from th...