mpmovieplayercontroller

How to shrink MPMoviePlayer Controller view

Hello, I am using iPhone SDK 3.1.3 I am looking to play file using MPMoviePlayer controller. It is playing in full screen view. Is there way to scale MPMoviePlayer Controller view to play file in small view in iPhone SDK 3.1.3? Thanks, ...

Override default behavior of a movie going fullscreen in Obj-C

I have a movie player and am observing MPMoviePlayerWillEnterFullscreenNotification. I need to be able to cancel the default behavior (like event.preventDefault() in AS3) and resize the movie myself. Possible? ...

Failed to set the initialPlaybackTime for a MPMoviePlayerController when recreating it in the second time

Hi, everyone. It's really wired. When at the first time a MPMoviePlayerController (e.g., theMovie) is created, its initialPlaybackTime can be set successfully. But when theMoive is released and re-create a new MPMoviePlayerController, its intialPlaybackTime can not be set correctly, actually the movie always plays from the start. The cod...

How to know a movieplayer release finished?

I aims to release a movieplayer (theMovie) and then start another action (so-called playButtonClicked) after it is completely released. I used performSelector to delay the "playButtonClicked" for 1 second and it works well. The code is: [theMovie release]; [self performSelector:@selector(playButtonClicked) withObject:nil afterDelay:1];...

MPMoviePlayerController into a view

Hi all! I need to play a video into a cocos2d project.. and my question is: how can I put MPMoviePlayerController into my view like this:? UIView *theView = [[CCDirector sharedDirector] openGLView]; thanks very much!! ...

Why can't I retrieve UIDeviceOrientation correctly while playing a movie in MPMoviePlayerController?

Everything works fine while I'm not playing anything (I'm calling beginnotifications, etc, and using the orientation to rotate my view). But after I start playing with MPMoviePlayerController everytime when I try UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; The orientation gets a UIDeviceOrientationUnknown...

MPMoviePlayerViewController on iPad view Landscape

Hi all! I have a view and a MPMoviePlayerViewController.. the iPad is oriented in landscape left mode, but when I play the video, the video is good to see in portrait mode... is there a way to force movieplayer to rotate in landscape mode? thanks in advance ...

Control ( UIButton, UILable) Hides when the Video plays Again on iPhone!

Hi, I have displayed UIButton on top of Playing Movie using this code. NSArray *windows = [[UIApplication sharedApplication] windows]; if ([windows count] > 1) { // Locate the movie player window UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow]; // Add our overlay view to the movie player's subview...

Ipad MPMovieplayerController video loads but automatically pauses when played

Hello I am trying to get the MPMovieplayerController to work. I load a video everything goes wel i even see the first frame but then it automatically pauses, if i press play it pauses again. In the simulator it works perfectly but on the ipad device it gives the problem. I can even seek through the video and i see the frame i seeked to ...

How to get right height when using mpmovieplayer in portrait mode?

Can we play a video in portrait mode with changing their height accordingly ?Any way to do that ? ...

Remove MPMoviePlayerController

I am using the MPMoviePlayerController to play a movie from the web. Depending on the table row selected a different movie is loaded. However, i would like the MPMoviePlayerController to disappear (or hide itself), once a new row is selected. Here is the code that gets called to play my movie and to, eventually, hide it - (IBAction) pl...

iPad Video Playback only delivers audio, not visuals.

Hi guys, Recently we've developed an iPhone app for an external company, and everything works fine in the app. There is a section where the app pulls video from the client's server, and streams it into the iPhone's MPMoviePlayerController. This works fine on the iPhone and iPodTouch - both the video and the audio show up just great. T...

iOS 3.2 MPMoviePlayerViewController and Three 20's TTNavigator

Hi, I tried running my working 3.1.x application on 3.2 and realized that the MPPlayerController framework had changed. After doing some research the common method should be to add the MPMoviePlayerViewController's view as a subview. Somehow this does not work for me ... I have TTTableViewController with items such as : [TTTab...

How can I launch QuickTime from my app?

I am trying to load a video from the web, but am having trouble getting it to appear in QuickTime. I can only hear the audio. I would like it to launch QuickTime. - (void)loadView { NSURL *movieURL = [NSURL URLWithString:@"http://movies.apple.com/media/us/mac/getamac/2009/apple-mvp-biohazard_suit-us-20090419_480x272.mov"]; if ...

How To Rotate An MPMoviePlayerController

I am building an iPhone app that plays videos on demand from a web service. The videos play in an MPMoviePlayerController, and everything works fine on the iPhone device. However, when one loads up the iPhone application on an iPad, the videos play Portrait mode (with letterboxing on the top and bottom), instead of Landscape Left like ...

How to split Code for iOS 3.0 and iOS 3.2 so I can use MPMoviePlayerViewController if OS 3.2++

I have a video that I play. To use full screen in iOS 3.2 I use the MPMoviePlayerViewController (seems to only work with that Class). But if I want to build for iOS 3.0 I obviously get several errors, because this class is not known in iOS 3.0. I also know how to get what I want with MPMoviePlayerController in iOS 3.0, but I can only hav...

How do I make my NSNotification trigger a selector?

Here's the code: - (void)viewDidLoad { [super viewDidLoad]; NSURL *musicURL = [NSURL URLWithString:@"http://live-three2.dmd2.ch/buureradio/buureradio.m3u"]; if([musicURL scheme]) { MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:musicURL]; if (mp) { ...

How to create a video overlay for the iPad?

I would like to know if it is possible to create something like "Picture in Picture" on an iPad - native application or web-based content, it doesn't matter. I started from mobile safari, trying to see if I can play two videos at the same time, but when I touch on one video, the other stops. I wonder if it could be possible to load a vid...

UIGestureRecognizer on MPMoviePlayerViewController

Hi there I'm wondering if any of you have encountered similar problems and of course happened to find a proper or not so proper (but working) solution/workaround. I'm using a MPMoviePlayerViewController and I'm trying to a add Swipe-Gesture Recognizers onto the MPMoviePlayerViewControllers view. moviePlayerViewController = [[MPMovi...

Play a video inside a view using MPMoviePlayerController?

I am trying to play video inside a view so I can move it around, perform layout together with other views, but I can't seem to get it work to using MPMoviePlayerController. I came across this link on how to play video in portrait mode but this is not possible because the video source is coming from the web and should be playable in diff...