allowedAirPlay 不在 MPMoviePlayerViewController 中显示 Air Play 按钮
我正在使用 MPMoviePlayerViewController 来播放视频。我将实例的 moviePlayer.allowsAirPlay 设置为 true,因为默认情况下它是 false。但是,“Air Play”按钮永远不会显示在播放器控件中。我是否做错了什么,或者 Air Play 是否有具体的指南?视频尺寸为 640x480,文件类型为 AVFileTypeQuickTimeMovie,扩展名为 .mov,H264 和 PCM 音频。
在按钮出现之前,AirPlay 设备是否需要位于附近?我没有 Airplay 设备,但我是一名应用程序开发人员,并且希望确保我的用户在拥有此类设备时也可以这样做。
I'm using an MPMoviePlayerViewController to play a video. I set the instance's moviePlayer.allowsAirPlay to true as it is false by default. However, the Air Play button never shows up in the player controls. Could I have done something wrong, or are there specific guidelines for Air Play? The videos are 640x480, file types AVFileTypeQuickTimeMovie, .mov extension, H264, and PCM audio.
Does an AirPlay device need to be in the vicinity before the button even shows up? I don't have an airplay device, but am an app developer and want to make sure my users can do so if they have such a device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,显然它的工作方式是在加载时检查 AirPlay 兼容设备,因此除非有可用的设备,否则该按钮不会出现。
OK, apparently the way it works is it checks for AirPlay compatible devices when loading, so the button does not appear unless some are available.