mpmovieplayercontroller

MpMovieplayerController tap gesture recognizer doesn't trigger when in fullscreen

99封情书 提交于 2019-12-04 09:13:41
I´m trying to use UITapGestureRecognizer in order to handle the taps on my fullscreen video. If I omit [self.player setFullscreen:YES animated:NO]; it works, but then my video won't scale to fit the screen. From my .m: - (void)viewDidLoad { [super viewDidLoad]; NSString *videoPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"mov"]; player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:videoPath]]; player.shouldAutoplay = NO; player.view.frame = self.view.bounds; player.scalingMode = MPMovieScalingModeAspectFit; player.controlStyle =

Play Youtube video in MPMoviePlayerController or play RTSP - 3GP link

情到浓时终转凉″ 提交于 2019-12-04 05:46:35
I've checked on stackoverflow and searched all over the internet but haven't been able to find a solution to my problem. In my app I need to have control over the way a youtube video is shown. I need to have control over the MPMoviePlayerController and thereby MPMediaPlayback properties. So actually I have 3 questions: Is there already a solution for playing youtube videos directly in a MPMoviePlayerController that you create yourself? Is it somehow possible to play the RTSP - 3GP links youtube has for the mobile site in the MPMoviePlayerController? (Right now it refuses the RTSP format) Is it

Remove/hide Full screen button from MPMoviePlayerController Standard Controls

隐身守侯 提交于 2019-12-04 05:31:52
问题 I want to remove/hide the full screen button from MPMoviePlayerController standard controls as full screen mode is creating lot of problems and also not a requirement of my app.I just want the play , stop , forward , reverse controls . Can anybody help me? 回答1: There's no standard way to do this. Here are your options. You could set the MPMoviePlayerController's controlStyle to None and create your own custom controls. Cons: this is a lot of work. You could use the NSNotificationCenter to

Problem playing mov file in MPMoviePlayerController

允我心安 提交于 2019-12-04 04:43:52
问题 (Im using this with Cocos2d) This works perfectly for an mp4 video NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"intro_iphone" ofType:@"mp4"]]; mpc = [[MPMoviePlayerController alloc] initWithContentURL:url] [mpc setFullscreen:YES animated:NO]; mpc.shouldAutoplay = YES; mpc.view.backgroundColor = [UIColor whiteColor]; mpc.view.frame = CGRectMake(0.0f, 0.0f, screenSize.width, screenSize.height); [mpc setScalingMode:MPMovieScalingModeFill]; [mpc setControlStyle

MPMoviePlayerController MovieAccessLogEvent - Inflated observedBitrate

北城以北 提交于 2019-12-04 03:59:53
问题 I am currently working with the MPMoviePlayerController and am analysing metrics for video playback. Specifically, analysing adaptive bitrates. As part of testing I load a particular rendition of the video at a fixed bitrate ( 995kbps ), however when reading from the observedBitrate property of my MPMovieAccessLogEvent , this value is much more inflated - to the tune of around 15mbps . Is there any known reason why this bitrate being returned is considerably higher than that of the playback?

Swift - Can't Dismiss MPMoviePlayerViewController

孤人 提交于 2019-12-04 03:03:45
问题 I have a video which opens in an MPMoviePlayerController in my app. It all works great except for the Done button which should close the player. The first time that the video is played the Done button works great. But if you pause it when you are watching it, then hit Done the second time you try to play the video, the Done button doesn't work. I have made a screen recording here to make it a bit simpler to understand: http://1drv.ms/1Jcdodc Can anyone help? This is my code that I am using:

MPMoviePlayerController deprecated, what now?

纵然是瞬间 提交于 2019-12-04 02:56:33
问题 So I have been searching for a solution now when MPMoviePlayerController is getting deprecated. my current code works fine: moviePlayer = MPMoviePlayerController(contentURL: receivedURL) moviePlayer!.movieSourceType = MPMovieSourceType.Unknown moviePlayer!.view.frame = view.bounds moviePlayer!.scalingMode = MPMovieScalingMode.AspectFill moviePlayer!.controlStyle = MPMovieControlStyle.None moviePlayer!.shouldAutoplay = true view.addSubview((moviePlayer?.view)!) moviePlayer?.setFullscreen(true,

Funky errors using MPMoviePlayerViewController

扶醉桌前 提交于 2019-12-04 02:44:48
Does anyone know what these error's mean? I get this when I click a button to play a video (download over internet on demand style). The problem I'm having is that my video plays with no audio. In fact the audio volume bar goes away completely on load. I have the feeling it has something to do with these errors heh. ~~>>SponViewController :sponButton: 2011-10-26 12:52:04.212 myapp[2692:12e03] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents

MPMoviePlayerViewController backgrounding deal. How to continue playing after returning from background to foreground?

ε祈祈猫儿з 提交于 2019-12-03 21:45:33
I'm working on application for video streaming. It is built with ARC for iOS5. To display view I use MPMoviePlayerViewController this way: .h @interface EpisodesTableViewController : UITableViewController<EpisodeUrlResolverDelegate> { NSTimeInterval playbackTime; EpisodeUrlResolver *episodeUrlResolver; } @property (strong, nonatomic) MPMoviePlayerViewController *player; @end .m @implementation EpisodesTableViewController @synthesize episodes, player; - (void)viewDidLoad { [super viewDidLoad]; episodeUrlResolver = [[Soap4MeEpisodeUrlResolver alloc] init]; [episodeUrlResolver setDelegate:self];

iOS Mirroring MPMoviePlayerController to TV with TV screen playback in fullscreen

坚强是说给别人听的谎言 提交于 2019-12-03 21:37:58
I have an App with video (locally stored) playback using MPMoviePlayerController NSString *deviceDir = [[NSUserDefaults standardUserDefaults] stringForKey:WZLDEVICEPATH]; NSString *videopath = [deviceDir stringByAppendingPathComponent:video] NSURL *url = [NSURL fileURLWithPath:videopath]; player = [[MPMoviePlayerController alloc] initWithContentURL:url]; CGRect viewInsetRect = CGRectInset (playerframe, 0.0, 0.0 ); /* Inset the movie frame in the parent view frame. */ [[player view] setFrame:viewInsetRect]; [player view].backgroundColor = [UIColor clearColor]; [player view].tag = TAG_VIDEO