mpmovieplayercontroller

Firing events at specific times into a video played by MPMoviePlayerController (for Custom Captions on Movie)

冷暖自知 提交于 2019-12-11 09:14:43
问题 I'm considering implementing an SRT File parser for overlaying videos over an MPMoviePlayerController class. Can anyone think of a reliable way to fire off events at very specific times while a movie's playing? 回答1: Hmm, not as familiar with iOS as I am with AppKit, but doesn't look like there's a direct equivalent of AppKit's NSTimer class. I suppose you could always use CoreFoundation's CFTimer (found in CFRunLoop.h), or NSObject's: - (void)performSelector:(SEL)aSelector withObject:(id

MPMoviePlayercontroller not working in iphone SDK 4 ? - Help Needed

那年仲夏 提交于 2019-12-11 09:13:22
问题 Till yesterday My MPMovieController was wokring fine in iPhone SDK 3 . But yesterday when I upgraded the SDK ti iphone SDK 4 my movieplayer stops working it is giving me a deprecation warning on the following line (They have deprecated lots of methods ) moviePlayer.movieControlMode = MPMovieControlModeDefault; My full code is as follows : NSURL *fileURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/videos/%@",[[NSUserDefaults standardUserDefaults] objectForKey:@"SERVICE_URL"]

MPMoviePlayerController not released

你。 提交于 2019-12-11 08:17:23
问题 I am running an intro movie in a MPMoviePlayerController and i've got a problem with the allocated memory not being released. When the movie finishes, Instruments shows the memory being released. However when i skip the movie by tapping on it the memory is not released. Here are the important parts of my code: - (void)applicationDidFinishLaunching:(UIApplication *)theApplication { self.application = theApplication; NSString *urlStr = [[NSBundle mainBundle] pathForResource:@"mymovie.mov"

iPhone: Add button on MPMoviePlayerViewController's navigation bar

回眸只為那壹抹淺笑 提交于 2019-12-11 08:08:21
问题 I am trying to add button on MPMoviePlayerViewController's navigationcontroller.view. I have wrote following so far. It doesn't give any error but button isn't appearing on view! Could anyone please tell me what am I doing wrong? Thanks. MPMoviePlayerViewController *videoController = [[[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:filePath]] autorelease]; UIButton *favButton = [UIButton buttonWithType:UIButtonTypeCustom]; favButton.frame = CGRectMake(280, 25, 30,

Programmatically make video from UIImages for playback with MPMovie Player

我们两清 提交于 2019-12-11 07:44:12
问题 How can I programmatically create a video file from a bunch of UIImages? I want to do this so I can play back a slideshow with MPMoviePlayer and stream via AirPlay. Ideally I'd like to be able to set a duration for each image and do simple fade transitions between them. 回答1: Check out the AVAssetWriter documentation for encoding your own movies on an iOS device. Another hint might be this question on SO: How do I use AVAssetWriter? 来源: https://stackoverflow.com/questions/6246419

MPMoviePlayerController only rotate on fullscreen

落花浮王杯 提交于 2019-12-11 07:16:47
问题 I have a table view that contains an instance of MPMoviePlayerController as the table header and when the user presses my custom overlay button, the video expands to full screen. The aspect ratio of the video is such that in portrait mode it is very small, and I imagine most users will rotate to landscape. The problem is that I want to allow rotation when the video is full screen but not when it exits. My underlying table does not support landscape. Is there a way to support rotation only

Is it possible to play multiple video files simultaneously on an iPad in either HTML5 or Native App?

半世苍凉 提交于 2019-12-11 07:07:06
问题 In either HTML5 or written natively in Objective-c, I need to generate a grid of video thumbnails that are automatically playing when the page or view loads on an iPad . I have been reading on multiple forums and StackOverflow. Some people indicate this is possible with AVController. Others including Apple state, "Note: Although you can create multiple MPMoviePlayerController objects and present their views in your interface, only one movie player at a time can play its movie." Reference:

iPhone - Streaming audio with MPMoviePlayerViewController

人盡茶涼 提交于 2019-12-11 06:56:36
问题 I'm using MPMoviePlayerViewController to stream an audio from the URL "http://ios-audio.q-music.be/audio.m3u8". Its playing well. But when I click "Home" button, the app goes into background and stops streaming. When I start the app again, it starts streaming again. How can I make my app stream the audio using MPMoviePlayerController when the app goes to background. Or do I've to use other frameworks? 回答1: Well I use https://github.com/mattgallagher/AudioStreamer for streaming audio, It will

How to play youtube Videos With MPMoviePlayerViewController

旧巷老猫 提交于 2019-12-11 06:43:15
问题 Is there any other way to play youtube videos other than UIWebView.i want to play youtube videos in MPMOviePlayer.i have done research on it but i found no result.i got this url Play YouTube videos with MPMoviePlayerController instead of UIWebView please help me in doing this.thanks in advance 回答1: I found a solution from github : https://github.com/hellozimi/HCYoutubeParser It's great, but sometime it can't play few links, seem like it can't get real URL video, NSDictionary *qualities =

MPMoviewPlayer calculate current time during video play [closed]

别说谁变了你拦得住时间么 提交于 2019-12-11 06:24:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . i want to calculate current time based on how much video is played, i am confused to use the property of durationWatched, can any one help me what should i do? or how to get current time of youtube video? 回答1: I have made a simple category on MPMoviePlayerController You can get the current playback time using