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
0
votes
1 answer

MPMoviePlayerViewController method click on pause

I'm using MPMoviePlayerViewController and I want to know if there is a method that can tell me when the user clicks on the Pause button for the video, like an observer?
sergio
  • 51
  • 1
  • 1
  • 5
0
votes
2 answers

How to get MPMoviePlayerViewController current Playing time?

I want to get current video playing time, not total duration. My code is [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(MPMoviePlayerLoadStateDidChange:) …
user7832515
0
votes
2 answers

iPhone how to stop MPMoviePlayerController is closing at the end?

In my iPhone app, I'm using MPMoviePlayerController to play a movie. I'm hiding all the controls that are by default visible on the movie player. But I placed a "Replay" button over the player control. At the end of movie, the player is being…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
1 answer

No Audio In AVCapture Session on iOS

My app simulates a FaceTime call, while simultaneously recording the people using it through the front facing camera, and showing a preview of it on the screen, as though it were a real FaceTime call. It then plays a pre-recorded video as the…
user717452
  • 33
  • 14
  • 73
  • 149
0
votes
2 answers

is it possible to change URL dynamically inMPMoviePlayerController

I am using MPMoviePlayerController to stream movie from the internet. And now my first application start to look nice :) BUT :) I have 4 URLs to stream (different movies), and I wan't when I tap to the movie to stop current movie and play another…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
2 answers

How to handle invalid url with MPMoviePlayerController

The app I am working on using MPMoviePlayerController to play video at remote urls. When I reuse the player to play more than one video and the url doesn't point to a video, the controller doesn't send any notification back. I've tried…
jarly
  • 231
  • 1
  • 4
  • 16
0
votes
1 answer

MPMoviePlayerController does not respond to setFullscreen = NO

I'm creating a custom MovieController using MPMovieController as base. I can switch the video to full-screen by calling _[moviePlayer setFullscreen:YES animated:YES];_ Calling the same function ([moviePlayer setFullscreen:NO animated:YES];) to…
the.evangelist
  • 488
  • 5
  • 18
0
votes
2 answers

MPMoviePlayerController : Trouble stopping video and switching back to iPhone app

I am making an iPhone app, where in there is a requirement for embedding video into the app. I am using MPMoviePlayerController class instance to play the video inside my iPhone app. Now how to stop the video and come back to the application when…
ios
  • 6,134
  • 20
  • 71
  • 103
0
votes
0 answers

MPMoviePlayerViewController is not working in ios 10.2

When i use below code on ios 10.2, MPMoviePlayerViewController *c = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieLoadStateDidChange:)…
ayushi
  • 101
  • 1
  • 11
0
votes
1 answer

Access playbackState of MPMoviePlayerController within UI Test

Is there a way to assess if a MPMoviePlayerViewController is playing or paused using XCTest's UI Testing framework? I can manage to access the video element with this beautiful piece of code that was spit out by the…
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
0
votes
3 answers

MPMoviePlayerController failed to play video from remote url

If I hit below url in browser, it plays video but my below code is not playing it on iPhone. http://ec2-107-21-15-206.compute-1.amazonaws.com:8000/static/uploads/1337/photos/5819/38111.mp4 MPMoviePlayerController…
hp iOS Coder
  • 3,230
  • 2
  • 23
  • 39
0
votes
2 answers

MPMoviePlayerViewController is not playing a video.

I am using my local router to play the video. I have configured my router and attached pendrive with my router. the pen drive have some video files. I am getting a URL (i.e http://192.168.0.1/user/root/Sample.mp4) from router . When i open this url…
0
votes
0 answers

Video Player Fill Parent and Image Slider not work on Android TV

I created a videowall application in MIT App Inventor, the application has been running fine when I test using a mobile phone, but when I run the application on android tv (55 "), there are some things that do not run like on my phone. The video…
Gumilar
  • 95
  • 2
  • 3
  • 12
0
votes
1 answer

endless video playback ios

I wanted to play a video as background of my view so I decided to use MPMoviePlayerController to play endless video and I made something like that: NSString *pathForFile = [[NSBundle mainBundle] pathForResource:@"clear" ofType:@"mp4"]; player =…
Alexandr Chekel
  • 382
  • 2
  • 15
0
votes
2 answers

[AVPlaybackItem fpItem]: message sent to deallocated instance

I play a movie with MPMoviePlayerController. Later, the app is "restarted" (meaning a pseudo-reset, where all viewControllers are removed and the user returns to the home screen), and the same movie is played again. This leads to a crash in iOS…
Joseph Tura
  • 6,290
  • 8
  • 47
  • 73
1 2 3
99
100