MPMoviePlayerController alternatives on iPhone?

后端 未结 3 662
不思量自难忘°
不思量自难忘° 2021-02-02 03:51

I am looking for alternatives to the MPMoviePlayerController on the iPhone. As a video player its functionality is very limited. According to the class reference there is no way

3条回答
  •  面向向阳花
    2021-02-02 03:55

    You could use AVPlayer. See the documentation

    You can then get the current playback time with currentTime and seek to a specified time with seekToTime:.

    You have to direct the visual output of an AVPlayer instance to an AVPlayerLayer object (subclass of CALayer). See the first listing here.

提交回复
热议问题