Error Code -11800, AVFoundationErrorDomain
Closed this issue · 2 comments
The player has always worked with this video, from today I get this error:
This is the code:
<View style={{ flex: 3 }}>
<Video
ref={(ref) => { this.video = ref }}
style={styles.video}
url={require('./../../assets/videos/video_promo.mp4')}
resizeMode='contain'
inlineOnly={true}
logo=' '
onError={(error)=>{
console.log("Error in Video",error)
}}
error={false}
/>
</View>
- react-native-af-video-player version: 0.2.1
- React Native version: 0.55.4
- OS: macOS 10.13.3
@matteocollina Are you getting this error on the Simulator? It seems that react-native-video has some problems with playing videos from local file system inside the Emulator/Simulator: TheWidlarzGroup/react-native-video#644 (comment)
By the way, isn't the path of your resource correct? It seems, that there is either missing one more 'dot' or there are one dot and slash to much => require('../../assets/videos/video_promo.mp4')
or require('../../../assets/videos/video_promo.mp4')
@no-weller I do not know why, but it was a temporary mistake. Not changing anything is back to work.
Perhaps, as you said, it was a problem with the emulator.