sathish Babu Angadi
sathish Babu Angadi

Reputation: 1

Customize MPMoviePlayerController

how to customize MPMoviePlayerController and how can use next and previous buttons in MPMoviePlayerController and move to next and previous movies after completion or clicking on those buttons?

Upvotes: 0

Views: 1860

Answers (3)

shobhitsaxena
shobhitsaxena

Reputation: 1

play your movie using-->`

moviePlayerController.controlStyle = MPMovieControlStyleFullscreen;

or any control style method use this link for more control style method...

https://developer.apple.com/library/ios/documentation/mediaplayer/reference/MPMoviePlayerController_Class/Reference/Reference.html

Upvotes: 0

xeonarno
xeonarno

Reputation: 426

to make short answer:

Try to inspect all the view in the main UIWindow like:

for(UIView* ViewLvl1 in [[UIApplication sharedApplication] keyWindow].subviews){
  NSLog(@"1 %@",[viewLvl1 descriptions]);
  for(UIView* ViewLvl2 in viewLvl1.subviews)
  {
    NSLog(@"2  %@",[viewLvl2 descriptions]);
    …etc…
  }
}

After that you will get all the name and property of each view , like MPVideoView or MPFullScreenTransportControls(this is where the button are).

So your question ask a lot of work, there is no easy answer unfortunately. For one time, apple did shit.

Good luck

Upvotes: 2

Nuoji
Nuoji

Reputation: 3448

Your best bet is to create a custom class that uses MPMoviePlayerController or AVPlayer "under the hood", but uses its own components for all other visual components, such as buttons for play/pause, duration etc. It takes a little while but is absolutely doable.

Upvotes: 1

Related Questions