mpmovieplayercontroller

repeatmode doesn't work in MPMoviePlayerViewController?

流过昼夜 提交于 2019-12-20 06:08:18
问题 How to display a recorded video as repeat as an'n' number of times like in Vine Application. Here I use the MPMoviePlayerViewController, and works great display the recorded video. But the problem is, it doesn't repeating. Here the currently using code is, NSURL *url = [NSURL fileURLWithPath:videoPath]; playerController = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [self presentMoviePlayerViewControllerAnimated:playerController]; [playerController.moviePlayer prepareToPlay];

Need to show the image of video in mpmovieplayercontroller swift

微笑、不失礼 提交于 2019-12-20 04:17:32
问题 I have already asked this doubt in my co workers profile, but no solution yet get. Please help me to solve this problem. i am struck more than 4 hours. So far i did: I use to choose the video from gallery and display that in screen using mpmovieplayercontroller . Here i am choosing 2 video one by one. If i select first video and to display and when i move to load second video my first video screen is in black . But i need to display the video image in that player. How to do that.please help

Can't get multiple images from video using MPMoviePlayerController. OSStatus -12433

早过忘川 提交于 2019-12-19 17:03:34
问题 I'm trying to extract multiple images from a selected video file using MPMoviePlayerController. Below is the code I have written. movie = [[MPMoviePlayerController alloc] initWithContentURL:[info objectForKey:UIImagePickerControllerMediaURL]]; NSNumber *time1 = [NSNumber numberWithInt:1]; NSNumber *time2 = [NSNumber numberWithInt:3]; NSNumber *time3 = [NSNumber numberWithInt:5]; NSArray *times = [NSArray arrayWithObjects:time1,time2,time3,nil]; [[NSNotificationCenter defaultCenter]

Event on view displayed change (Youtube MPMoviePlayerViewController)

半世苍凉 提交于 2019-12-19 09:26:27
问题 I would like to know when the YouTube MPMoviePlayerViewController appear (programmatically) after have clicked on the UIWebView which permit to play the video in iOS, to get and to have control on this view. Because I want to get information from the player like the current playback time, loading time... like in a regular MPMoviePlayerViewController. Thanks 回答1: You will, under no circumstances receive any notifications from the WebView embedded player. Update: This is not entirely true.

MPMoviePlayerViewController becomes black when enters background

你离开我真会死。 提交于 2019-12-19 08:18:42
问题 I have problem with MPMoviePlayerViewController , when app enters background and then I launch it again or go another viewControllers the movie became black ! I have movie which plays in the background of my menus , here is my code : EIDTED CODE : -(void)viewDidLoad { [self moviePlayer2]; } - (void) moviePlayer2 { NSString *path = [[NSBundle mainBundle] pathForResource:@"cloud" ofType:@"mp4"]; player = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:path]];

MPMoviePlayerController multitasking problem

不想你离开。 提交于 2019-12-19 03:50:06
问题 I develop an application on iphone that uses MPMoviePlayerController to play audio file. When Application goes to background, if mpmovieplayer is playing, iphone continues to play the current music, but when it ends, the next track doesn't start. I try to start the next audio file in the MPMoviePlayerPlaybackDidFinishNotification and when I follow the code using the debugger I can see that the method is invoked and the code executed, bat the next audio file still doesn't start. Is this

Playing a video file saved in the app's documents directory

时光怂恿深爱的人放手 提交于 2019-12-19 03:42:15
问题 I have a video file saved in my app's local directory in the documents folder. I want to playback the file when the user clicks on the item in an embedded table view I created. My code for playing back the video is as follows: NSString* documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString* path = [documentPath stringByAppendingPathComponent:@"DemoRecording.mp4"]; NSURL* movieURL = [NSURL fileURLWithPath: path]; [player.view

MPMoviePlayerController error _itemFailedToPlayToEnd while playing youtube video iOS 7

一个人想着一个人 提交于 2019-12-18 15:12:50
问题 I've seen this mentioned a few places around the web but have yet to find answer anywhere. I am using ALMovieplayercontroller library. Everything works fine but when i am trying to play Youtube video it gives me error. _itemFailedToPlayToEnd: { kind = 1; new = 2; old = 0; } EDIT - (void)setContentURL:(NSURL *)contentURL { self.movieSourceType = MPMovieSourceTypeStreaming; [super setContentURL:contentURL]; [[NSNotificationCenter defaultCenter] postNotificationName

Next/Previous buttons on iPhone MPMoviePlayerController

别说谁变了你拦得住时间么 提交于 2019-12-18 13:16:49
问题 When using the MPMoviePlayerController, the play button is surrounded with "Next" and "Previous" buttons. How do I get notifications when they are clicked? is there a way to feed MPMoviePlayerController with a list (array) of content? 回答1: Nathan is correct about needing to implement your own UI for the player if you want button notifications. You can get notifications from the player about playback state though. from the AddMusic example, where self is the controller or model containing the

Ipad MPMovieplayerController video loads but automatically pauses when played

倖福魔咒の 提交于 2019-12-18 13:14:17
问题 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 but nothing plays. This is some output from the console: 2010-06-08 22:16:13.145 app[3089:207] Using two-stage rotation animation. To use the smoother single-stage