作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
有谁知道应该使用什么来禁用 iOS 6.0 上的 AirPlay 视频播放?
我在 iOS 6.0 和 5.1 中测试过并且仍然有效。
此时我正在使用 allowsAirPlayVideo = NO,但根据 Apple 文档,在 iOS 6 上它已被弃用:
谢谢。
最佳答案
在线文档中还缺少唯一的东西! iOS 6 中有 3 个弃用的 AVPlayer 方法:
airPlayVideoActive
allowsAirPlayVideo
usesAirPlayVideoWhileAirPlayScreenIsActive
它们似乎已被替换为:
externalPlaybackActive
allowsExternalPlayback
usesExternalPlaybackWhileExternalScreenIsActive
从 this set of diffs 收集的信息.(你好 Apple?你可以做得更好!)
关于ios - iOS 6 上的 allowsAirPlayVideo 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12710855/
有谁知道应该使用什么来禁用 iOS 6.0 上的 AirPlay 视频播放? 我在 iOS 6.0 和 5.1 中测试过并且仍然有效。 此时我正在使用 allowsAirPlayVideo = NO,
我是一名优秀的程序员,十分优秀!