Questions tagged [mpmovieplayer]

iOS API : A movie player (of type MPMoviePlayerController) that manages the playback of a movie from a file or a network stream. MPMoviePlayerController was replaced in iOS 8 by AVKit classes such as `AVPlayerViewController`, and is formally deprecated in iOS 9

377 questions
61
votes
9 answers

iPhone SDK:How do you play video inside a view? Rather than fullscreen

I am trying to play video inside a UIView, so my first step was to add a class for that view and start playing a movie in it using this code: - (IBAction)movie:(id)sender{ NSBundle *bundle = [NSBundle mainBundle]; NSString *moviePath =…
Sam
  • 1,343
  • 5
  • 18
  • 30
51
votes
9 answers

How to receive NSNotifications from UIWebView embedded YouTube video playback

I didn't received any notifications for MPMoviePlayerController. What am I doing wrong? I use following logic. I'm begining to play youtube video in UIWebView. UIWebView calls a standard MPMoviePlayerController. I don't control…
15
votes
2 answers

Play video from cache in iphone programmatically

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…
Warrior
  • 39,156
  • 44
  • 139
  • 214
14
votes
3 answers

Stream video while downloading iOS

I am using iOS 7 and I have a .mp4 video that I need to download in my app. The video is large (~ 1 GB) which is why it is not included as part of the app. I want the user to be able to start watching the video as soon as is starts downloading. I…
12
votes
3 answers

How to remove app name from Control Center - Music?

I am working on an app (which isn't a music app) however, at some point, it can play audio inside a UIWebView (from an html 5 file) which enabled auto play. The problem is that, my app name is showing up in iPhone's Control Center inside "Music"…
Hemang
  • 26,840
  • 19
  • 119
  • 186
12
votes
3 answers

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

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…
11
votes
5 answers

MPMoviePlayerController - detect pressing Next/Prev buttons

I'm using MPMoviePlayerController and I need to detect pressing Next/Prev buttons. I tried several things, none of which seem to works. Here is what I tried: remote control events -(void) viewWillAppear:(BOOL)animated { [super…
11
votes
4 answers

iOS - Video not rotating only in iOS7 over iPhone?

What i have Done? I am playing videos in an extended class of MPMoviePlayerViewController and have implemented orientation functions as follows - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { if…
9
votes
5 answers

iOS - How can i get the playable duration of AVPlayer

The MPMoviePlayerController has a property called playableDuration. playableDuration The amount of currently playable content (read-only). @property (nonatomic, readonly) NSTimeInterval playableDuration For progressively downloaded network content,…
MystyxMac
  • 1,532
  • 2
  • 14
  • 28
9
votes
6 answers

Using MPMoviePlayerViewController in SDK 3.2 for iPad

I've developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with no problems. I know this is a newbie question, but how do I get a movie to play in the new MPMoviePlayerViewController. I am only getting audio and wish to learn…
wsurferdude
  • 93
  • 1
  • 1
  • 6
8
votes
3 answers

MPMoviePlayer not playing video

MPMoviePlayer is not playing video. I'm running iOS 7 and getting the same error on the device and simulator: 2013-10-02 12:49:18.246 xxxx[688:60b] _itemFailedToPlayToEnd: { kind = 1; new = 2; old = 0; } I've tried playing a video from the internet…
backofthecup
  • 1,091
  • 2
  • 6
  • 7
8
votes
1 answer

How to make a movie from set of images using UIGetScreenImage

I have used this method and get multiple images. I am able to successfully create a movie but my problem is that when I play the movie, it seems to be playing too fast i.e. the movie doesn't have all the frames. Here is my code. -(UIImage…
Ajay Chaudhary
  • 1,993
  • 15
  • 23
7
votes
7 answers

How to play video using MPMoviePlayerController?

I am using the following code to play the video using the MPMoviePlayerController , but the video is not played. Can anyone tell me why ? NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString…
Perseus
  • 1,546
  • 4
  • 30
  • 55
6
votes
1 answer

Issues playing a video with MonoTouch

I'm having a few issues playing a video in MonoTouch. From what I can find there are two different approaches to take. Both result in the audio being played but no video. I'm betting I'm missing something simple so any help would be great. Attempt…
James Antrobus
  • 409
  • 4
  • 16
6
votes
1 answer

Can not detect MPMoviePlayerDidExitFullscreenNotification

In my project, I used MPMoviePlayerController to stream video from an http url. It plays fullscreen. When the video is playing, if you tap on "Done" button the video stops and it disappears, but the problem is; if you pinch to close video screen…
1
2 3
25 26