Questions tagged [mpmovieplayercontroller]

A movie player (of type MPMoviePlayerController) manages the playback of a movie from a file or a network stream. Playback occurs in a view owned by the movie player and takes place either fullscreen or inline. You can incorporate a movie player’s view into a view hierarchy owned by your app, or use an MPMoviePlayerViewController object to manage the presentation for you.

This class plays movie or audio file supported in iOS. This includes both streamed content and fixed-length files.

This class supports programmatic control of movie playback, and user-based control via buttons supplied by the movie player.

The MPMoviePlayerController class generates numerous notifications to keep your application informed about the state of movie playback.

The MPMoviePlayerController class is formally deprecated since iOS 9.

Supported format for MPMoviePlayerController class are below:

Apple documentation: Supported format for video/audio

2218 questions
16
votes
5 answers

Subtitles for AVPlayer/MPMoviePlayerController

I am using m3u8 video format for streaming the video and now I need to display subtitles for the same. I searched in Apple Documentation and found that I can achieve this by using the closedCaptionDisplayEnabled property of AVPlayer. I am…
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
15
votes
9 answers

Hide StatusBar from MPMoviePlayerController

I've been struggling with a very annoying problem all day long and I hope I could find help on this board. I'm using an MPMoviePlayerController to play a fullscreen movie on iPad and I can't figure how to remove the status bar which is always…
SetBlue
  • 151
  • 1
  • 1
  • 3
15
votes
3 answers

MPMoviePlayerController initialPlaybackTime property not working in iOS 8.4

After setting initialPlaybackTime property, the video(HTTP streaming) still plays from the beginning. The same code works well in iOS <= 8.3: self.moviePlayer.initialPlaybackTime = self.lastPlaybackTime; [self.moviePlayer play];
freestyler
  • 5,224
  • 2
  • 32
  • 39
15
votes
4 answers

MPMoviePlayerController fullscreen movie inside a UIWebView

I'm having a problem with the UIWebView and MPMoviePlayerController: My UIWebView have a movie inside the html (it's a local html file), I'm using html5 and a video tag for the video. The problem is: the user can set the video to play inline,…
Wakazors
  • 151
  • 1
  • 3
15
votes
4 answers

MPMoviePlayerController Simulator Crash

My MPMoviePlayerController crashes when I try and play any video. This happens only on the simulator, works fine on a device. Error is as follows: 2012-10-25 16:46:24.033 TheFasterChef[8529:14303] [MPAVController] Autoplay: Disabling autoplay for…
Alan
  • 4,325
  • 3
  • 21
  • 25
14
votes
4 answers

Why does MPMoviePlayerController setCurrentPlaybackTime goes to the wrong time?

I am experience some weirdness with MPMoviePlayerController. I am trying to set the currentPlaybackTime of a video whilst it is playing (file source). Here is an example of what happens Play video hit button to jump to 9.3 seconds into the…
Ian1971
  • 3,666
  • 7
  • 33
  • 61
14
votes
2 answers

Equivalent of MPMovieScalingMode in AVPlayer?

With MPMoviePlayerControllers's, scaling a movie is easy with setting MPMovieScalingMode. (like MPMovieScalingModeFill, MPMovieScalingModeAspectFill) With AVPlayer/AVPlayerLayer I can't seem to find anything like that. Do I have to do this myself?…
steipete
  • 7,581
  • 5
  • 47
  • 81
14
votes
1 answer

Record HTTP Live Streaming Video To File While Watching?

I am trying to create a streaming video DVR like functionality in an app I am developing. I have an HTTP Live Stream that I have successfully gotten to play on the iPad. I want the user to be able to push the "Record" button, and begin recording the…
David
  • 151
  • 1
  • 5
14
votes
4 answers

AirPlay support, MPMoviePlayerController and MPVolumeView relation

I am developing an iPhone application that has support for video play. I am using MPMoviePlayerController with custom controls for playing the video. For this purpose I have set control style of MPMoviePlayerController to MPMovieControlStyleNone. I…
spd
  • 2,114
  • 1
  • 29
  • 54
14
votes
16 answers

iPad MPMoviePlayerController - Disable Fullscreen

Is there a way to disable the fullscreen button of the MPMoviePlayerController ?
MathieuF
  • 3,130
  • 5
  • 31
  • 34
14
votes
2 answers

Overreleased MPMoviePlayerController under ARC in iOS SDK 8.4 on iPad

Created a very simple (single view) sample project from a part of a bigger one. It worked with the iOS SDK 8.3. When you hit the "Show me" button, a video comes up (as modal) and 2 secs later, it disappears. Looks good. But few moments later the app…
14
votes
5 answers

Detect when a webview video becomes fullscreen on ios8

I have an app where users can open videos from UIWebview, including Youtube ones. In iOS7, I was able to get a notification when it started playing, or when it became full screen, which is vital for me to show certain options to the user and modify…
eiprol
  • 389
  • 1
  • 3
  • 14
14
votes
8 answers

Forcing landscape orientation on fullscreen MPMoviePlayerController prevents correct rotation when exiting fullscreen

I have an iPhone application (iOS6+) that supports all interface orientations. However, only landscape orientation should be supported when an MPMoviePlayerController is playing a video fullscreen. I found the following solution on Stack Overflow…
14
votes
6 answers

itemFailedToPlayToEnd - MPMoviePlayerController - iOS7

Running into a weird issue while updating my app for iOS 7. For iOS 6, there is no problem and the videos are always loaded. However that is not the case here. I have a scrollview which displays playlistItems - and once you click on the…
OxenBoxen
  • 165
  • 1
  • 1
  • 7