Skip to content

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

Open

Description

@funlogicgamez

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

Activity

  1. jiaxianhua commented on Nov 27, 2018

    @jiaxianhua
    Member

    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>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions