react-native-video: Meet "AVFoundationErrorDomain" error when loading a remote url
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.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 21
- Comments: 18 (5 by maintainers)
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 fileand 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
I also can’t play https video URLs. Getting this kind of error objects:
I was still having this issue but this solved it
source={{ uri: “your uri here”, type: ‘mp4’ }}
I’m also facing this issue, I’m using this video:
https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
It seems they’re sending all the correct headers: