Swift - AVPlayer load failed with error Error Domain=NSURLErrorDomain Code=-999 “cancelled”












2















I try to play a video from url string. But I have get some error as question title.



I try this code in below. videoPath is a url string.



let videoURL = URL(string: videoPath)
let player = AVPlayer(url: videoURL!)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
playerViewController.player!.play()
}


Below is error log :




load failed with error Error Domain=NSURLErrorDomain Code=-999
"cancelled" UserInfo={NSErrorFailingURLStringKey=http://b...a.mp4,
NSErrorFailingURLKey=http://b...a.mp4,
_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>,
NSLocalizedDescription=cancelled} [-999]




I set the info.plist --



<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>www.example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>









share|improve this question

























  • Can you please share If videURL returns a valid url?

    – Emre Önder
    Nov 20 '18 at 8:52











  • It is vaild. When you try to open with browser this url . The video is shown and played

    – codeByThey
    Nov 20 '18 at 8:56











  • can you say what fixed it?

    – ironRoei
    Jan 21 at 13:00











  • I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

    – Ryan Romanchuk
    Feb 5 at 23:52
















2















I try to play a video from url string. But I have get some error as question title.



I try this code in below. videoPath is a url string.



let videoURL = URL(string: videoPath)
let player = AVPlayer(url: videoURL!)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
playerViewController.player!.play()
}


Below is error log :




load failed with error Error Domain=NSURLErrorDomain Code=-999
"cancelled" UserInfo={NSErrorFailingURLStringKey=http://b...a.mp4,
NSErrorFailingURLKey=http://b...a.mp4,
_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>,
NSLocalizedDescription=cancelled} [-999]




I set the info.plist --



<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>www.example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>









share|improve this question

























  • Can you please share If videURL returns a valid url?

    – Emre Önder
    Nov 20 '18 at 8:52











  • It is vaild. When you try to open with browser this url . The video is shown and played

    – codeByThey
    Nov 20 '18 at 8:56











  • can you say what fixed it?

    – ironRoei
    Jan 21 at 13:00











  • I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

    – Ryan Romanchuk
    Feb 5 at 23:52














2












2








2








I try to play a video from url string. But I have get some error as question title.



I try this code in below. videoPath is a url string.



let videoURL = URL(string: videoPath)
let player = AVPlayer(url: videoURL!)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
playerViewController.player!.play()
}


Below is error log :




load failed with error Error Domain=NSURLErrorDomain Code=-999
"cancelled" UserInfo={NSErrorFailingURLStringKey=http://b...a.mp4,
NSErrorFailingURLKey=http://b...a.mp4,
_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>,
NSLocalizedDescription=cancelled} [-999]




I set the info.plist --



<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>www.example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>









share|improve this question
















I try to play a video from url string. But I have get some error as question title.



I try this code in below. videoPath is a url string.



let videoURL = URL(string: videoPath)
let player = AVPlayer(url: videoURL!)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
playerViewController.player!.play()
}


Below is error log :




load failed with error Error Domain=NSURLErrorDomain Code=-999
"cancelled" UserInfo={NSErrorFailingURLStringKey=http://b...a.mp4,
NSErrorFailingURLKey=http://b...a.mp4,
_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <841B2FFA-479B-4E5A-9BD3-D9207EAA0D32>.<2>,
NSLocalizedDescription=cancelled} [-999]




I set the info.plist --



<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>www.example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>






ios swift avplayer audiotoolbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 11:12









wvteijlingen

8,66612544




8,66612544










asked Nov 20 '18 at 8:42









codeByTheycodeByThey

735523




735523













  • Can you please share If videURL returns a valid url?

    – Emre Önder
    Nov 20 '18 at 8:52











  • It is vaild. When you try to open with browser this url . The video is shown and played

    – codeByThey
    Nov 20 '18 at 8:56











  • can you say what fixed it?

    – ironRoei
    Jan 21 at 13:00











  • I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

    – Ryan Romanchuk
    Feb 5 at 23:52



















  • Can you please share If videURL returns a valid url?

    – Emre Önder
    Nov 20 '18 at 8:52











  • It is vaild. When you try to open with browser this url . The video is shown and played

    – codeByThey
    Nov 20 '18 at 8:56











  • can you say what fixed it?

    – ironRoei
    Jan 21 at 13:00











  • I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

    – Ryan Romanchuk
    Feb 5 at 23:52

















Can you please share If videURL returns a valid url?

– Emre Önder
Nov 20 '18 at 8:52





Can you please share If videURL returns a valid url?

– Emre Önder
Nov 20 '18 at 8:52













It is vaild. When you try to open with browser this url . The video is shown and played

– codeByThey
Nov 20 '18 at 8:56





It is vaild. When you try to open with browser this url . The video is shown and played

– codeByThey
Nov 20 '18 at 8:56













can you say what fixed it?

– ironRoei
Jan 21 at 13:00





can you say what fixed it?

– ironRoei
Jan 21 at 13:00













I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

– Ryan Romanchuk
Feb 5 at 23:52





I started getting this when started to use urlAsset.resourceLoader.preloadsEligibleContentKeys = true with streaming CMAF playlist. However i realized it only occurred on SIMULATOR, not device. For me it had nothing to do with AVPlayer as this was happening on a screen that didn't even instantiate a movie player yet.

– Ryan Romanchuk
Feb 5 at 23:52












3 Answers
3






active

oldest

votes


















0














Are you trying to present the AVPlayerViewController inside viewDidLoad? If so you could try presenting it after the view controller's view is added to the window hierarchy - viewDidAppear for example. Keep in mind that viewDidAppear will be called when you navigate back to the controller and the modal presentation will be triggered again.






share|improve this answer



















  • 1





    It's in viewDidAppear

    – codeByThey
    Nov 20 '18 at 10:30



















0














Does the URL require cookies to be set ? I faced the same issue with missing cookies.
You can check by trying to open the url in an incognito-window. If it still plays fine then perhaps you can debug this by -



Creating an AVURLAsset object with the URL eg -
AVURLAsset(url: <URL>, options:) and set the resourceLoader delegate to self.
Like urlAsset?.resourceLoader.setDelegate(self, queue: .main)
and implement the functions



func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
return true
}

func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForRenewalOfRequestedResource renewalRequest: AVAssetResourceRenewalRequest) -> Bool {
return true
}

func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest) {

}

func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool {
return true
}

func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel authenticationChallenge: URLAuthenticationChallenge) {

}


But if it does require cookies - Set them in the AVURLAsset object eg

let asset = AVURLAsset(url: videoURL, options: ["AVURLAssetHTTPHeaderFieldsKey": ["Cookie": "<YOUR TOKEN>"]])






share|improve this answer































    0














    The reason could be wrong metadata in the video. Take a look at this thread which I answered: AVPlayer HLS live stream IOS



    The transcoded video needs to have profile baseline in order to be played in AVPlayer. Take look at the ffmpeg transcoding command for details:



    https://gist.github.com/chung-nguyen/d88e73e3cc8788878f5ffb8c232b4729






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389144%2fswift-avplayer-load-failed-with-error-error-domain-nsurlerrordomain-code-999%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Are you trying to present the AVPlayerViewController inside viewDidLoad? If so you could try presenting it after the view controller's view is added to the window hierarchy - viewDidAppear for example. Keep in mind that viewDidAppear will be called when you navigate back to the controller and the modal presentation will be triggered again.






      share|improve this answer



















      • 1





        It's in viewDidAppear

        – codeByThey
        Nov 20 '18 at 10:30
















      0














      Are you trying to present the AVPlayerViewController inside viewDidLoad? If so you could try presenting it after the view controller's view is added to the window hierarchy - viewDidAppear for example. Keep in mind that viewDidAppear will be called when you navigate back to the controller and the modal presentation will be triggered again.






      share|improve this answer



















      • 1





        It's in viewDidAppear

        – codeByThey
        Nov 20 '18 at 10:30














      0












      0








      0







      Are you trying to present the AVPlayerViewController inside viewDidLoad? If so you could try presenting it after the view controller's view is added to the window hierarchy - viewDidAppear for example. Keep in mind that viewDidAppear will be called when you navigate back to the controller and the modal presentation will be triggered again.






      share|improve this answer













      Are you trying to present the AVPlayerViewController inside viewDidLoad? If so you could try presenting it after the view controller's view is added to the window hierarchy - viewDidAppear for example. Keep in mind that viewDidAppear will be called when you navigate back to the controller and the modal presentation will be triggered again.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 20 '18 at 9:58









      gulyashkigulyashki

      35124




      35124








      • 1





        It's in viewDidAppear

        – codeByThey
        Nov 20 '18 at 10:30














      • 1





        It's in viewDidAppear

        – codeByThey
        Nov 20 '18 at 10:30








      1




      1





      It's in viewDidAppear

      – codeByThey
      Nov 20 '18 at 10:30





      It's in viewDidAppear

      – codeByThey
      Nov 20 '18 at 10:30













      0














      Does the URL require cookies to be set ? I faced the same issue with missing cookies.
      You can check by trying to open the url in an incognito-window. If it still plays fine then perhaps you can debug this by -



      Creating an AVURLAsset object with the URL eg -
      AVURLAsset(url: <URL>, options:) and set the resourceLoader delegate to self.
      Like urlAsset?.resourceLoader.setDelegate(self, queue: .main)
      and implement the functions



      func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
      return true
      }

      func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForRenewalOfRequestedResource renewalRequest: AVAssetResourceRenewalRequest) -> Bool {
      return true
      }

      func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest) {

      }

      func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool {
      return true
      }

      func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel authenticationChallenge: URLAuthenticationChallenge) {

      }


      But if it does require cookies - Set them in the AVURLAsset object eg

      let asset = AVURLAsset(url: videoURL, options: ["AVURLAssetHTTPHeaderFieldsKey": ["Cookie": "<YOUR TOKEN>"]])






      share|improve this answer




























        0














        Does the URL require cookies to be set ? I faced the same issue with missing cookies.
        You can check by trying to open the url in an incognito-window. If it still plays fine then perhaps you can debug this by -



        Creating an AVURLAsset object with the URL eg -
        AVURLAsset(url: <URL>, options:) and set the resourceLoader delegate to self.
        Like urlAsset?.resourceLoader.setDelegate(self, queue: .main)
        and implement the functions



        func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
        return true
        }

        func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForRenewalOfRequestedResource renewalRequest: AVAssetResourceRenewalRequest) -> Bool {
        return true
        }

        func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest) {

        }

        func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool {
        return true
        }

        func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel authenticationChallenge: URLAuthenticationChallenge) {

        }


        But if it does require cookies - Set them in the AVURLAsset object eg

        let asset = AVURLAsset(url: videoURL, options: ["AVURLAssetHTTPHeaderFieldsKey": ["Cookie": "<YOUR TOKEN>"]])






        share|improve this answer


























          0












          0








          0







          Does the URL require cookies to be set ? I faced the same issue with missing cookies.
          You can check by trying to open the url in an incognito-window. If it still plays fine then perhaps you can debug this by -



          Creating an AVURLAsset object with the URL eg -
          AVURLAsset(url: <URL>, options:) and set the resourceLoader delegate to self.
          Like urlAsset?.resourceLoader.setDelegate(self, queue: .main)
          and implement the functions



          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForRenewalOfRequestedResource renewalRequest: AVAssetResourceRenewalRequest) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest) {

          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel authenticationChallenge: URLAuthenticationChallenge) {

          }


          But if it does require cookies - Set them in the AVURLAsset object eg

          let asset = AVURLAsset(url: videoURL, options: ["AVURLAssetHTTPHeaderFieldsKey": ["Cookie": "<YOUR TOKEN>"]])






          share|improve this answer













          Does the URL require cookies to be set ? I faced the same issue with missing cookies.
          You can check by trying to open the url in an incognito-window. If it still plays fine then perhaps you can debug this by -



          Creating an AVURLAsset object with the URL eg -
          AVURLAsset(url: <URL>, options:) and set the resourceLoader delegate to self.
          Like urlAsset?.resourceLoader.setDelegate(self, queue: .main)
          and implement the functions



          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForRenewalOfRequestedResource renewalRequest: AVAssetResourceRenewalRequest) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest) {

          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool {
          return true
          }

          func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel authenticationChallenge: URLAuthenticationChallenge) {

          }


          But if it does require cookies - Set them in the AVURLAsset object eg

          let asset = AVURLAsset(url: videoURL, options: ["AVURLAssetHTTPHeaderFieldsKey": ["Cookie": "<YOUR TOKEN>"]])







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 '18 at 4:41









          NavinDevNavinDev

          915178




          915178























              0














              The reason could be wrong metadata in the video. Take a look at this thread which I answered: AVPlayer HLS live stream IOS



              The transcoded video needs to have profile baseline in order to be played in AVPlayer. Take look at the ffmpeg transcoding command for details:



              https://gist.github.com/chung-nguyen/d88e73e3cc8788878f5ffb8c232b4729






              share|improve this answer




























                0














                The reason could be wrong metadata in the video. Take a look at this thread which I answered: AVPlayer HLS live stream IOS



                The transcoded video needs to have profile baseline in order to be played in AVPlayer. Take look at the ffmpeg transcoding command for details:



                https://gist.github.com/chung-nguyen/d88e73e3cc8788878f5ffb8c232b4729






                share|improve this answer


























                  0












                  0








                  0







                  The reason could be wrong metadata in the video. Take a look at this thread which I answered: AVPlayer HLS live stream IOS



                  The transcoded video needs to have profile baseline in order to be played in AVPlayer. Take look at the ffmpeg transcoding command for details:



                  https://gist.github.com/chung-nguyen/d88e73e3cc8788878f5ffb8c232b4729






                  share|improve this answer













                  The reason could be wrong metadata in the video. Take a look at this thread which I answered: AVPlayer HLS live stream IOS



                  The transcoded video needs to have profile baseline in order to be played in AVPlayer. Take look at the ffmpeg transcoding command for details:



                  https://gist.github.com/chung-nguyen/d88e73e3cc8788878f5ffb8c232b4729







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 23 at 8:12









                  Nguyễn Trường ChungNguyễn Trường Chung

                  1486




                  1486






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53389144%2fswift-avplayer-load-failed-with-error-error-domain-nsurlerrordomain-code-999%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Guess what letter conforming each word

                      Port of Spain

                      Run scheduled task as local user group (not BUILTIN)