question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Meet "AVFoundationErrorDomain" error when loading a remote url

See original GitHub issue

Here’s my code: source={{uri: "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4"}}

Then it triggered loadError function which shows error object like this: { error: { domain: 'AVFoundationErrorDomain', code: -11800 }, target: 14 }

I’ve made a huge search and still have no idea.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:21
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
ndaocommented, Aug 2, 2016

i’m getting the same error. nothing in log.

i had to NSLog(@“%@”, _playerItem); in RCTVideo.m to print out the real error Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file

and found the solution here. basically you have to enable http or use https http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http

2reactions
ghostcommented, Jul 8, 2019

I also can’t play https video URLs. Getting this kind of error objects:

{
    error: {
        domain: "AVFoundationErrorDomain", 
        code: -11828
    },
    target: 109
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

AVURLAsset cannot load with remote file - Stack Overflow
In the completion block, the status is AVKeyValueStatusFailed and the error message is "Cannot Open". All exemples I have seen, use a local...
Read more >
Using AVFoundation to Play and Persist HTTP Live Streams
The StreamListManager class manages loading and reading the contents of the ... method is called to remove the downloaded stream at the specified...
Read more >
AVFoundation error -11829 "Cannot - Apple Developer
trying to use AVPlayer on a remote (https:) mp4 file. randomly we get the above error on the exact same url. works fine...
Read more >
Create a more responsive media app - WWDC22 - Videos
Discover how you can use AVFoundation to keep people focused on your media app's content — not your loading spinner. We'll show you...
Read more >
Step-by-Step: Simple Video App using Objective-C
Make sure you import the AVFoundation framework. ... if (!success) { NSLog(@"AppDelegate Debug - Error setting AVAudioSession category.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found