MPMoviePlayerController: How can I make my video loop?

前端 未结 3 2007
忘了有多久
忘了有多久 2021-02-08 00:55

Thank you in advance for any help, I am a newbie and would appreciate any help here.. I have this code to play a movie and it works great. Can somebody PLEASE tell me how to ma

3条回答
  •  你的背包
    2021-02-08 01:24

    Set the repeatMode property of your MPMoviePlayerController to MPMovieRepeatModeOne

    player = [[MPMoviePlayerViewController alloc]
              initWithContentURL:[NSURL fileURLWithPath:path]];
    player.moviePlayer.repeatMode = MPMovieRepeatModeOne;
    

提交回复
热议问题