Adding an AirPlay Route Button to AVPlayerViewController

﹥>﹥吖頭↗ 提交于 2019-12-11 11:56:45

问题


Is there any way to add an AirPlay Route Button to AVPlayerViewController? I've tried the MPVolumeView trick but that doesn't appear to work with AVPlayerViewController.

Thanks in advance.


回答1:


If you have airplay devices available, the button will just appear. If you don't see it, make sure you've configured the AVPlayerViewController's AVPlayer to opt in (by setting its allowsAirPlayVideo property).



来源:https://stackoverflow.com/questions/34602354/adding-an-airplay-route-button-to-avplayerviewcontroller

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