[英]AVPlayerViewController plays audio through airplay when allowsExternalPlayback is false
[英]AVPlayerViewController Does Not Autorotate Video When ShowsPlaybackControls is False
將AVPlayerViewController上的ShowsPlaybackControls屬性設置為false會導致視頻不再按照設備方向旋轉。 我希望它的行為與真相相同,即翻轉視頻以匹配設備方向。 有任何想法嗎?
我已經確定這是否是iOS本地視頻播放器的工作方式,那么這就是默認行為。 另外,如果您將其用作頁面的背景視圖並且希望保留方向,則它很有意義。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.