How to Handle Expo Video source unreachable?

Hi,

I am using Expo Video component to play remote url video, However, when the url is down/unreachable, the simulator crash if I select other working url. Please help. thanks

 <Video
                    source={{ uri: this.props.uri }}
                    posterSource={require('../assets/playbutton.png')}
                    usePoster={true}
                    rate={1.0}
                    volume={1.0}
                    isMuted={false}
                    resizeMode="contain"
                    shouldPlay={this.state.isPlaying}
                    isLooping={false}
                    style={{ width: '100%', height: 210 }}
                    onError={() => {
                    console.log('error')
                    }}
                />

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.