1

I have added MPMediaPlayerController in my View but it only shows Play and Pause Button.

The control does not show Next/Previous button.

How to add Next/Previous control in MPmediaPlayerController ?

Nayan
  • 3,014
  • 2
  • 17
  • 33

1 Answers1

0
[mp setControlStyle:MPMovieControlStyleFullscreen]; // mp is an instance of MPMoviePlayerController
Harsh
  • 666
  • 1
  • 10
  • 21
  • Thanks Harsh.... but i used above code..... but still not working .... please check below code.... if any error then let me know.... UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; NSString *path = [[NSBundle mainBundle] pathForResource:selectedsong ofType:@"mp3"]; moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:path]]; moviePlayer.view.frame = CGRectMake(0, 0, 320, 480); [moviePlayer setControlStyle:MPMovieControlStyleFullscreen]; – Mayur P Bhansali Aug 10 '11 at 08:49