【发布时间】:2016-09-19 11:21:23
【问题描述】:
我正在尝试从 Apple 示例直播流 URl 播放 HLS 流。
我在info.plist 中添加了 ATS 异常。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
当 AVPlayer 开始准备播放时应用崩溃。除了以下例外。
2016-09-19 16:15:32.562 AVPlayer[4630:268295] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
........
libc++abi.dylib: terminating with uncaught exception of type NSException
【问题讨论】:
标签: ios swift avplayer http-live-streaming