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
3 answers

Set the frame of the MPMoviePlayerController in iOS 3.1.x

I have been trying to set the frame of the MPMoviePlayerController. But the app is crashing at the line player.view.frame = CGRectMake (0,0,480,320); in iOS 3.1.3 but works fine on iOS 3.2 or greater. What might be the problem? - (void)viewDidLoad…
Nithin
  • 6,435
  • 5
  • 43
  • 56
0
votes
1 answer

MpMoviePlayer load audio after stop event

My app is 95% over and I have a very nasty bug, and I really need some help. I have table view with list of stream url's > I select movie and it loads > I have overlay with stop, pause, volume and scroll view with streams to switch streams while…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
1 answer

video from document directory using MPMoviePlayerViewController

I am trying to save video to document directory and play it again.I am doing app like youtube or like hotstar when i can save video in offline and play it in offline. step 1:I am getting video url from the api and i am converting it to the data and…
0
votes
1 answer

Making internet radio app

I'm making my own internet radio app with a custom interface. So i'm wondering what is the best tool to implement the audio playback with a custom interface? I tried to use MPMoviePlayerController, but i couldn't find out how to customize it's…
0
votes
1 answer

How can release MPMoviePlayerController preload memory

HELLO. I'm using a MPMoviePlayerController in my iPhone app to display some short video clips sometimes. There are some buttons in the app mainView . When I press the button, the movie will be play. When I press the button,the button call [self…
zhao
  • 1
  • 2
0
votes
1 answer

Empty (white) line under UITableView after close MPMoviewPlayer from fullscreen mode

I have simple application with list of movies in UITableView. When I select some row, I open modal view controller what present MPMoviePlayerController. [self.navigationController presentModalViewController:playerController animated:YES]; Also I…
Ku6ep
  • 316
  • 2
  • 8
0
votes
1 answer

MPMoviePlayer Bad-Access error after playing video

I´ve created an new ViewController (only with the .h and .m file) and added that code to play a video. After the video has finished, i get a "Exe_bad_access" error. Error message when adding "NSZombieEnabled=true" to the excecutable as a…
geforce
  • 2,593
  • 3
  • 28
  • 44
0
votes
1 answer

Drop of MPMoviePlayer sound, when testing app on device

I'm building an application containing a XML feed with a link to a movie, which I would like to play whenever the user clicks on an image. For that purpose I'm using the MPMoviePlayerViewController. Testing the app on the simulator has given me the…
0
votes
2 answers

Problem playing video in MPMoviePlayerController for iPad

I can hear audio for about 5 seconds, and then my screen is constantly "Loading Movie..." I am testing in the simulator. STVideo *mySTVideo; mySTVideo = [items objectAtIndex:indexPath.row]; moviePlayerViewController =…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
0
votes
2 answers

iPhone - picking a video... URL with two bars?

I have a UIPickerController to select videos in my App and it is crashing when selecting videos using the picker. When I feed the MPMoviePlayerController with the URL directly it works fine, but when the URL comes from the UIPickerController, it…
Duck
  • 34,902
  • 47
  • 248
  • 470
0
votes
3 answers

iphone - MPMoviePlayerController - How to write code that works on older versions of iOS also

I'm using MPMoviePlayerController in my application. When I ran the application on iOS 4.2 device, its working fine. But when running on iOS 3.1.3 device its crashing saying that duration, controlStyle etc are not available in older iOS SDK. I set…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
2 answers

hiding movieControl in iphone OS 3.2 or later

I saw this example on appsmuck.com for seamless video looping, it works fine on iphoneOS 3.0 but doesn't works on 3.2 or above :( It says movieControlMode is deprecated http://appsamuck.com/day26.html can someone tell me how to hide the controls in…
Shrey
  • 1,959
  • 2
  • 21
  • 44
0
votes
0 answers

Disable UIWebView to play video in MPMoviePlayerController

I am trying to avoid auto video playing in MPMoviePlayerController is there any possible way to stop webview not to load video in full screen and MPMoviePlayerController ? I used this codes in viewDidLoad but still no success ! …
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
0
votes
4 answers

Play Video immediately when UIView is loaded

Howdy! I'm writing an iPad app, and I need to be able to play a video when a UIView loads. However, I was getting a BAD_EXC_ACCESS if I try to message my MPMoviePlayerController anywhere after I initialize it. I removed the MPMediaPlayerController…
Jacob
  • 926
  • 1
  • 14
  • 25
0
votes
1 answer

Getting file type (Audio or Video) in iOS

I have an app where I open and display a variety of files that are downloaded and saved on the device. I already have the data load into a UIImage, which equates to nil is the file isn't an image, but I'm stuck when it comes to finding out if the…
Ben Robinson
  • 1,602
  • 3
  • 16
  • 30
1 2 3
99
100