mpmovieplayercontroller

Cancel a Movie before it begins playing

Hi All, I'm streaming video to the iPhone and don't like the way MPMoviePlayerController handles things at the beginning. I noticed that when you click on the row to select a particular movie the app just sits there until it is loaded sufficiently to play it. So I popped in a UIImageView with a loading image and a nice spinner to keep...

MPMoviePlayerViewController for older versions of iPhone SDK

If I use MPMoviePlayerViewController in 3.2/4.0 it builds fine. If I use it in 3.1.3 and below the build fails with error Expected specifier-qualifier-list before MPMoviePlayerViewController' I use this class in 113 places, so I get 113 errors. What is the best way to fix this critical issue? ...

Playing a video with MPMoviePlayerController in Portrait WITHOUT Private API - Will I get rejected by Apple?

It's my understanding that MPMoviePlayerController movies must play in landscape orientation because the "setOrientation:" function is private API. Well, it occurred to me that if I were to rotate the video 90 degrees in Final Cut and then re-render, the video would APPEAR to be playing in portrait orientation even though it was technica...

One MPMoviePlayerController instance can buffer two video resources (URL) at the same time?????

Hi,all. I hope a player can buffer two movies at the same time so that i can play the first movie and the other buffering at the same time .if the first one played finished ,the second can continue to play Immediately。 One MPMoviePlayerController instance can buffer two video resources (URL) at the same time????? hope your ideas,thank ...

Why does MPMoviePlayerController work in the simulator, but not the device?

Hey guys, I'm having trouble getting MPMoviePlayerController to work on the device. It runs fine in simulator, playing a five-second video and then sending the appropriate callback (myMovieFinishedCallback:) to the view controller. When it runs on the device, the movie never shows up, even though I can trace through [player play] with n...

iphone native media player - customization

I am building an application that implements a custom view on iPhone's native media player. I want your help in deciding directions to lay this effort. At present I have find out that iPhone SDK doesn't support APIs to customize media player. I need these things in the player: I would like to have custom views i.e. want to change all c...

How can I format a movie to play through MPMoviePlayerViewController on the iPad?

Hi guys, I've been struggling to make video on the iPad work. I'm using an MPMoviePlayerViewController and it plays fine in the simulator. I've tried several different converters, including ones dedicated to producing iPad-formatted video, but none of the videos play on the device. The MPMoviePlayerViewController loads and the controls ...

[iPhone] How to forward MPMoviePlayerController to specified time in iPhone application?

I am new to iPhone development, I need to play videos which are on some link and I have overlay of three labels(like 'jump to 1:20') on the MPMoviePlayerViewController by tapping on the label the movie controller is forwarded to that labeled time. I have tried two functions namely "setCurrentTime" and "initialPlaybackTime" but none of th...

Playing multimedia content in sequence

Hi I have an NSArray containing many 'multimedia action' as I like to call them, objects that encapsulate some multimedia content like movies and photos. I'd like to 'play' them in sequence waiting each one finished before calling the other. What is the best way to manage the duration of each operation before calling the next one? (for ...

movie not playing in full mode(portrait)?

Hi All, I want to play a video in iphone in potrait mode .I have written the following code -(void)buttonEvent { NSBundle *bundle = [NSBundle mainBundle]; NSString *moviePath = [bundle pathForResource:@"Movie" ofType:@"m4v"]; NSURL *URL = [NSURL fileURLWithPath:moviePath]; self.moviePlayer = [[MPMoviePlayerController alloc] init...

Playing videos works on iPhone 4 but not on iPhone 3G

I am using the MPMoviePlayerController to play movies: STVideo *mySTVideo; mySTVideo = [items objectAtIndex:indexPath.row]; moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]]; moviePlayerViewController.view.backgroundColor = [[UIColor alloc] initWi...

Screen blackout when performing Pinch Gesture on MPMoviePlayerController

I have this strange issue in iOS4 where in the Video which is playing in MPMoviePlayerController blacks out when the user performs certain kind of gestures over the screen. I'm simply creating a UIViewController and object for MPMoviePlayerController and then setting the View onto the UIViewController. I want to ask if this issue is so...

MPMoviePlayerViewController in a

I have a view controller that's been added to a UITabBarController. In this view controller I have a button that opens up a movie using MPMoviePlayerViewController. When I play the movie, the top navigation bar is still overlayed on top of the movie, effectively blocking out a portion of the screen. When this view controller isn't in...

MPMoviePlayerController: high usage of memory (not deallocated)

I'm using a MPMoviePlayerController in my iPhone app to display some short video clips sometimes. I deaclared a Category which ads a couple methods to the class to properly attach its view to a particular view and to remove it from there. I use the notification system to let a class know when the movie has finished playing, then I try to...

MPMoviePlayerLoadStateDidChangeNotification isn't called

Hi, I'm converting my iOS3 app to iOS4 and having problems with the movie player! I have followed the example here: http://is.gd/eowgi (I don't need it to work in iOS3 anymore!) and subclassed UIViewController with the following code: #import "moviePlayer.h" @implementation moviePlayer @synthesize mainAppDelegate; @synthesize mp; - ...

MPMoviePlayerController inside UITabBarController

Ok, so here's the thing. I have a UIViewController that contains a UITabBarController. That tab bar has a UIViewController for each tab button. Now, inside one of the tab buttons is an MPMoviePlayerController that is playing a stream from over the network. Playing the stream works just fine and you can see the video and hear the audio. ...

Movie Player Crashes Sometimes in Horizontal Orientation

MPMoviePlayerViewController* moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:myChartlyObj.video_url]]; moviePlayerViewController.view.backgroundColor = moviePlayerViewController.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"st-screen.png...

MPMoviePlayerController - Controls are not aligned

Hi @all, My iPhone app (created under iOS2), has a strange behavior. The left arrow is not aligned with other controls (on both iOS3 and 4) My other apps work fine... Does someone have any idea ? Update : That bug appear with all iPhone in my company, and in all iPhone in my customer's company (both compiled on many computers or ...

iPhone OS 3.0 playing movies wont work

Hello, The following code used to work but now it doesn't and I have not changed anything about it. if ([self respondsToSelector:@selector(presentMoviePlayerViewControllerAnimated:)]) { MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:selectedLink]]; ...

MPMoviePlayerController Stack Overflow

I'm trying to use MPMoviePlayerController in a fairly simple iPhone app. The basic layout is an UIApplicationDelegate associated with a UIWindow xib file. Within the "applicationDidFinishLaunching" method, I'm trying to play a movie with the following code: // Path to the movie NSString *path = [[NSBundle mainBundle] pathForResource:@...