mpmovieplayercontroller

Can a UIActivityIndicator be displayed over a MPMoviePlayerController in full screen mode?

≡放荡痞女 提交于 2019-12-22 05:38:10
问题 In an iphone app, I create an MPMoviePlayerController and instruct it to start playing video in full screen mode (I don't think there is any option for anything but F/S mode on iPhone like you can on ipad). Once the full screen player comes up, the entire screen is black and there are no controls visible (set to MPMovieControlStyleDefault) for several seconds sometimes. After a second or three, the controls appear and the first frame of the video, then the video begins to buffer and autoplays

How do I replace MPMoviePlayer notifications?

人盡茶涼 提交于 2019-12-22 05:23:20
问题 In iOS 9 MPMoviePlayer and all his components are deprecated. We used MPMoviePlayerController notifications, like MPMoviePlayerLoadStateDidChangeNotification, MPMovieDurationAvailableNotification, MPMoviePlayerPlaybackStateDidChangeNotification, MPMoviePlayerReadyForDisplayDidChangeNotification , to track video service quality. But now with AVPlayerViewController I can't find properly replacement for these notifications. How do I replace these notifications now? 回答1: AVPlayerViewController is

iOS: Playing video that needs authentication works in QuickLook but not in MPMoviePlayerViewController

自古美人都是妖i 提交于 2019-12-22 04:35:53
问题 I login to my server using a SOAP web service . Once logged in, many of the files that I am viewing are only available to the logged in user, so iOS must create a session in NSURL or something. When trying to preview a video file using MPMoviePlayerViewController it will not work, it just loads up the viewController, then dismisses it. If I use QuickLook it does work, probably because I download the video locally first, then view it. But, I don't want to do it this way, I want to stream the

Download video before view Iphone sdk

三世轮回 提交于 2019-12-22 00:26:33
问题 I am developing an application that requires to play some video. However I do not want to pack the videos with application. Instead I would like to download videos in the NSDocumentDirectory and then play from there using MPMoviePlayerController. Anybody any Idea how could I download the video from a url? Thanx, Gezim 回答1: Try this one: NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setHTTPMethod:@"GET"]; NSError *error; NSURLResponse *response;

MPMoviePlayerController : orientation problem

隐身守侯 提交于 2019-12-21 23:15:24
问题 finally I have to post my problem here. Yes it could be duplicate question here as I have referred many answers regarding to this question.But I could not find any fix. (Also didn't find any question regarding to tab-bar app specific so...) And I don't want to use MPMoviePlayerViewController I have tab-bar application. In last tab's VC there is a button. On click event I want to start movie player. For that I am using MPMoviePlayerController . Its all fine when orientation is Portrait . But

Multiple MPMoviePlayerControllers on iOS 3.2/4.0

亡梦爱人 提交于 2019-12-21 19:49:46
问题 The question is can I have two instances of MPMoviePlayerController simultaneously in one UIViewController? I'm trying to create a smooth transition between two movies in iPad app, but when I create the second MPMoviePlayerController the playback of first one is stopped and can't be resumed. I didn't found any restriction for having multiple MPMoviePlayerControllers in Apple documentation. Thanks in advance. P.S. Any other ideas about smooth transition between movies will be also appreciated.

Is it possible to play 2 video file simultaneously in the same view?

你说的曾经没有我的故事 提交于 2019-12-21 19:48:27
问题 Is it possible to play 2 video files simultaneously in the same view? I want to do have them both playing over half the screen, a little like this: _ _ _ _ _ _ _ _ _ _ | | | | | VIDEO | | | |_ _ _ _ _ _ _ _ _ _| | | | | | VIDEO | | | |_ _ _ _ _ _ _ _ _ _| How would I go about accomplishing this? Thanks :) 回答1: apple's document said: Although you may create multiple MPMoviePlayerController objects and present their views in your interface, only one movie player at a time may play its movie. so

How do I catch the MPMoviePlayer next button click event while in fullscreen mode on the iPad?

≡放荡痞女 提交于 2019-12-21 06:18:43
问题 When the MPMoviePlayerViewController is in fullscreen mode on the iPad, it defaults to having its controls to have a previous and next button on the overlay there. In my project I need to capture the click for that overlay button and handle it accordingly. Since I'm not sure how to invoke a playlist just yet there is no next item and clicking on the button breaks the view once I exit fullscreen mode. Somehow it just doesn't know what to do and I get no errors. What I would like to know is if

How can I customize the progress bar of MPMoviePlayerController's background and behavior?

时光怂恿深爱的人放手 提交于 2019-12-21 05:46:13
问题 Since I'm new I can't post image yet... so I'll have to draw the picture: --------------------------------------------------------------------------- |[Done] Loading... (*) | --------------------------------------------------------------------------- | | | | | | | | | | | | | | | |--------------------------| | | | | | | | |<< || >>| | | | | | | | |--------------------------| | | | --------------------------------------------------------------------------- My goal is to create a customized

Playing a video stream on iOS7

你离开我真会死。 提交于 2019-12-21 02:56:21
问题 I'm trying to play a simple live stream link on iOS. There's one view controller with a button with a play action defined as below. - (IBAction)play:(id)sender { NSString *path = @"http://asish.flashmediacast.com:2135/live/International/playlist.m3u8"; MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:path]]; [mp.view setFrame:[self.view bounds]]; [mp prepareToPlay]; [mp play]; } Well nothing happens when the button's pressed. I've checked