定制 MPMoviePlayerController

1.  Hide the existing  system controls of the MPMobilePlayerController.

     MPMoviePlayerController * _videoPlayer;

  ...

  _videoPlayer.controlStyle = MPMovieControlStyleNone;

  ...

2.  Add your customized view with customized control buttoms (play, pause, stop, prev, next) or slider (volumn slider) to the _videoPlayer.view .

  These controls could be the handler of the MPMoviePlayerController's Event.

  ...

  _customView.frame = ...

  [_video.view addSubView:_customView];  

posted @ 2012-04-19 16:40  姜萌芽  阅读(542)  评论(0编辑  收藏  举报