iOS|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|AVPlayer 新增属性 automaticallyWaitsToMinimizeStalling】
推荐阅读
- 2020-04-07vue中Axios的封装和API接口的管理
- iOS中的Block
- 记录iOS生成分享图片的一些问题,根据UIView生成固定尺寸的分享图片
- 2019-08-29|2019-08-29 iOS13适配那点事
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- iOS面试题--基础
- Excel|Excel 2013 新增功能之瞬间填充整列数据!
- 接口|axios接口报错-参数类型错误解决
- iOS|iOS 笔记之_时间戳 + DES 加密
- iOS,打Framework静态库