AVPlayer 新增属性 automaticallyWaitsToMinimizeStalling

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): 当播放HLS媒体时,  automaticallyWaitsToMinimizeStalling 的值为 true.

  • File-based Media: 当播放基于文件的媒体, 包括逐渐下载的内容,  automaticallyWaitsToMinimizeStalling 的值为 false.


avplayer在新系统下有时会播放不了

self.player.automaticallyWaitsToMinimizeStalling = NO;

一句话解决。




你可能感兴趣的:(iOS,ios)