1
Je suis en train de lire le flux HLS de l'échantillon de pomme en direct URl.AVPlayer ne joue pas flux HLS
I ajouter exception ATS à info.plist
.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
Lorsque AVPlayer commence à se préparer à lire l'incident de l'application. Avec l'exception ci-dessous.
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
Sans NSAppTransportSecurity NSAllowsArbitraryLoads Xcode montre exception. –
Ok mais le fait que vous avez besoin http n'affecte pas l'erreur que vous obtenez, vous obtenez une erreur à cause de l'un de vos tableaux non à cause de la connexion http. –