I've got an instance of AVPlayer which plays some media, but I don't want user to be able to stream it via AirPlay. So I set allowsExternalPlayback
property of AVPlayer to NO
. However it doesn't seem to affect AirPlay button in control center, so it stays visible. Is there any way to hide the button?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):