How to hide control before MPMoviePlayerController movie is played?

前端 未结 3 899
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 03:10

Assume iOS 3.2 or later. What is the proper sequence of command to play a move with the controls initially hidden. When the movie is playing, the user has the option to tag

3条回答
  •  庸人自扰
    2020-12-24 03:30

    [Update] As proposed by @ReinYem, a much better solution is to rely on a MPMoviePlayerLoadStateDidChangeNotification instead of a timer.

    Actually, the following solution should not be considered anymore:

    Set controlStyle property to MPMovieControlStyleNone initially, and then set it to MPMovieControlStyleFullscreen one second later using a [performSelector:withObject:afterDelay:1]. It works well, controls do not appear until user taps on video.

提交回复
热议问题