【发布时间】:2015-12-16 16:17:32
【问题描述】:
如何使用像这个截图这样的视频播放器并将其包含在我的 Objective-C 应用程序中:
我在iOS9的iPad air2模拟器上的Safari上拿了它,它正在播放直播..
它看起来像 MPMoviePlayerViewController,但在 iOS 9 中已正式弃用 ..
也不像 AVPictureInPictureController 或 AVPlayerViewController 因为它们没有任何控制按钮..
所以,我问我如何在我的应用程序中包含这样的播放器(包含完成/播放/暂停/pictureInPicture)按钮,并且在 IOS9 中受支持
提前谢谢..
【问题讨论】:
-
您是否尝试将
AVPlayerViewController与showsPlaybackControls = YES、allowsPictureInPicturePlayback = YES一起显示播放控制和画中画。
标签: ios objective-c iphone cocoa-touch ios9