I have a simple audio player (MPMoviePlayerController) that can play an audio stream. On iOS 11, I am very worried about problems, I have had a thousand times error, and my thread has been stopped:
NSURLConnection finished with error - code -1002
I embed this code (I saw this code on stackowerflow), but this does not help me:
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>cast.mysite.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSIncludesSubdomains</key> <true/> </dict> </dict> </dict>
Maybe you know the best solution?
xcode nsurlconnection mpmovieplayercontroller ios11
Genevios
source share