react-native-video: AVFoundationErrorDomain code: -11800 with https on iOS
Current behavior
On iOS the video does not play, the onBuffer function is called once with this data:
{isBuffering: false, target: 969}
And then the onError function is called with this data:
{error:code: -11800, domain: "AVFoundationErrorDomain"}, target: 969}
The video is played successfully on Android.
Reproduction steps
- Create a new react native project
- Install and link (manually because cocoapods created issues in my project) the library
- Try to play Big buck bunny:
<Video
source={{
uri: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
}}
onBuffer={onBuffer}
onError={onError}
style={{ width: constants.screenWidth, height: constants.screenWidth * 0.55 }}
/>
Expected behavior
The video would play
Platform
- iOS
Video sample
https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 25
I’m seeing this problem intermittently. I had some luck adding the
type: "mp4"to thesourceprop of the video tag, but that was a red herring, it seems. This problem is back for me in version 5.0.2, after playing just fine for quite a while.Doing some digging in the issues here, I found several related items:
https://github.com/react-native-community/react-native-video/issues/275 (http vs. https issue suggested) https://github.com/react-native-community/react-native-video/issues/1886 (encoding issue suggested) https://github.com/react-native-community/react-native-video/issues/1940 (no cause suggested) https://github.com/react-native-community/react-native-video/issues/2044 (no suggestions)
This seems to be a prevalent and continuing issue. Why is this closed?
I have the error only on my iPhone simulator, but not on real device…
react-native-video@5.0.2Same issue here, why is this closed?
when I used https URLs instead of http URL then it worked
lots of requests from the same issue, no solutions yet. its time to move on to a better lib where at least we have some response from creators.
iOS Simulator of iPhone 11
react-native-video@5.1.1 😦
@yernandus Hi, I’ve got exactly the same issue, for local downloaded file. Did you solved this somehow?