Way to go ahead after mpmovieplayercontroller deprecation in iOS9

自闭症网瘾萝莉.ら 提交于 2019-12-05 19:01:17

Use below ways provided by Apple. Basically using AVFoundation framework, Also it support picture in picture feature to support latest iOS 9 multi tasking feature.

Apple Documentation

The AVKit framework provides the AVPlayerViewController class, which automatically displays a PiP button for your users.

If you support PiP using AVKit but want to opt out of PiP for a particular video, assign a value of NO to the player view controller’s allowsPictureInPicturePlayback property.

AVKit also provides the AVPictureInPictureController class, which you can use with the AVPlayerLayer class from AV Foundation. Use this approach if you’d like to provide your own view controller and custom user interface for video playback.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!