iOSDevLog / ijkplayer

Bilibili/ijkplayer cocoapods,iOS video player based on FFmpeg n3.3, with MediaCodec, VideoToolbox support.
GNU Lesser General Public License v2.1
80 stars 34 forks source link

Cant stream rtsp NSURLConnection finished with error - code -1002 #14

Open funlogicgamez opened 5 years ago

funlogicgamez commented 5 years ago

Im trying to play rtsp and rtmp stream but it gives me this error even after adding Allow Arbitrary loads in info.plist NSURLConnection finished with error - code -1002 Any help will be appreciated.Thanks

jiaxianhua commented 5 years ago

Info.plist

Apple default need https, use http should declare in Info.plist

https://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http

<key>NSAppTransportSecurity</key>
<dict>
  <!--Include to allow all connections (DANGER)-->
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>