轉(zhuǎn)自:【博客】
iOS 10下,AVplayer新增屬性 automaticallyWaitsToMinimizeStalling。
蘋果官方文檔地址https://developer.apple.com/reference/avfoundation/avplayer/1643482-automaticallywaitstominimizestal
HTTP Live Streaming (HLS): When playing HLS media, the player behaved as if automaticallyWaitsToMinimizeStalling is true.
File-based Media: When playing file-based media, including PRogressively downloaded content, the player behaved as if automaticallyWaitsToMinimizeStalling is false.
文檔中的兩句話
HTTP Live Streaming (HLS): 當(dāng)播放HLS媒體時(shí), automaticallyWaitsToMinimizeStalling 的值為 true.
File-based Media: 當(dāng)播放基于文件的媒體, 包括逐漸下載的內(nèi)容, automaticallyWaitsToMinimizeStalling 的值為 false.
avplayer在新系統(tǒng)下有時(shí)會(huì)播放不了
self.player.automaticallyWaitsToMinimizeStalling = NO;
一句話解決。