mpmovieplayercontroller

MPMoviePlayerController with a Custom Button on its toolbar

China☆狼群 提交于 2019-12-20 15:17:14
问题 You might have seen video through you tube in iPhone. Normal MPMoviePlayerController has previous, next & play/pause buttons. You tube - player has additional two buttons on it. => Add to favorites on the left side. => Email this video on right side. I want to implement the same for my application. But I am failed to find out the property or methods regarding - implementing this. How do I need buttons on it? When User is watching video there should no buttons on screen. When user taps on

MPMoviePlayerController with a Custom Button on its toolbar

亡梦爱人 提交于 2019-12-20 15:17:01
问题 You might have seen video through you tube in iPhone. Normal MPMoviePlayerController has previous, next & play/pause buttons. You tube - player has additional two buttons on it. => Add to favorites on the left side. => Email this video on right side. I want to implement the same for my application. But I am failed to find out the property or methods regarding - implementing this. How do I need buttons on it? When User is watching video there should no buttons on screen. When user taps on

why does MPMovieLoadState have state 5?

一笑奈何 提交于 2019-12-20 14:12:48
问题 I find MPMoviePlayerController.h,there is enum { MPMovieLoadStateUnknown = 0, MPMovieLoadStatePlayable = 1 << 0, MPMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES MPMovieLoadStateStalled = 1 << 2, // Playback will be automatically paused in this state, if started }; typedef NSInteger MPMovieLoadState; but when i did NSLog(@"%d",player.loadState) it prints out 5 or sometimes 3,how did it happen?As i know the loadstate has

Disappearing status bar at the top after MPMoviePlayerController is closed

蹲街弑〆低调 提交于 2019-12-20 12:38:48
问题 Having an interesting little problem with my iPhone app. I have a view with a table and each cell, when clicked, plays a video fullscreen then when you press done, the video stops and goes back to the table view. The only problem is, when you press done within the first 2 or 3 seconds of the video loading, when the view goes back to the table view, the bar at the top of the screen that tells the time and battery strength etc is no longer there, its just a white space. But if you press done

Play video from cache in iphone programmatically

蹲街弑〆低调 提交于 2019-12-20 10:44:04
问题 I am developing an iPhone application in which I will store stream video from URL directly to cache in local, now I need to play video in movie-player while it was in downloading in cache. I followed this http://lists.apple.com/archives/cocoa-dev/2011/Jun/msg00844.html, but I couldn't do exact. I am able to download video in cache but I couldn't play video from cache. So how can I play while its downloading? 回答1: Just change your web url to local path url... Try this code... NSBundle *bundle

Multiple MPMoviePlayerController instances

痴心易碎 提交于 2019-12-20 10:08:11
问题 I'm trying to put two MPMoviePlayerController on a UIView like this for (int i = 0; i < 2; i++) { UIView* v = [[UIView alloc] initWithFrame: CGRectMake(0.0f, 300.0f * i, self.view.width, 300.0f)]; [self.view addSubview: v]; NSURL* url = [NSURL URLWithString: [urls objectAtIndex: i]]; MPMoviePlayerController* movieController = [[MPMoviePlayerController alloc] initWithContentURL: url]; movieController.movieSourceType = MPMovieSourceTypeFile; movieController.shouldAutoplay = NO; movieController

AVAudioRecorder won't record IF movie was previously recorded & played

别等时光非礼了梦想. 提交于 2019-12-20 09:47:18
问题 My iPhone app uses "AVAudioRecorder" to make voice recordings. It also uses "UIImagePickerController" to record movies and "MPMoviePlayerController" to play movies. Everything works fine until I do all three things in a row: Record a movie using UIImagePickerController Play back the recorded movie using MPMoviePlayerController Try to make a voice recording using AVAudioRecorder When I call AVAudioRecorder's "record" method in step 3, it returns NO indicating failure, but giving no hints as to

How to show buffered data on UISlider using MpMoviePlayerController in iOS?

∥☆過路亽.° 提交于 2019-12-20 08:46:17
问题 I am using MPMoviePlayerController to play audio and I want to show the buffered data on slider like this ... I want to show the buffer data like red section in slider. I have tried to google it. But I didn't get any solution for it. and How to make slider customize? Thanks in advance... 回答1: Yes We can Show stream data using MPMoviePlayerController by its playableDuration . I am explaining all these steps involved me to make this custom_slider for my customize player ... (You Can direct read

AVPlayer and MPMoviePlayerController differences [closed]

↘锁芯ラ 提交于 2019-12-20 08:21:33
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I am developing an iPhone application that needs to play videos. So far, I learned that there are at least two API's for achieving this; AVPlayer and MPMoviePlayerController . What are the main differences? 回答1: NOTE as of iOS9, Apple has deprecated the

MPMoviePlayerController Stops Playing After 5 seconds - Swift

烂漫一生 提交于 2019-12-20 06:28:36
问题 I have a video I'm trying to play using MPMoviePlayerController and it loads fine, but cuts out after 5 seconds. I found this post, but it isn't really applicable for swift. MPMoviePlayerController stops playing the video after 5s Here is my code. import MediaPlayer class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. var moviePlayer: MPMoviePlayerController? let url = NSURL(string: