Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6581

How to handle internet disconnection when loading an expo-av video component

$
0
0

I have a simple reactnative component, which has the expo-av video element on it.

I'm having an issue were if the network is disconnected when attempting to play the video and then when the internet connection returns, it does not resume playing the video.

any ideas? some code below (simplified)

export default function VideoView(props: any) {  const {question} = props;  return <Video    videoStyle={{marginHorizontal: 10}}    source={{uri: question.video_url}}    rate={1.0}    volume={1.0}    isMuted={false}    resizeMode={ResizeMode.CONTAIN}    shouldPlay    ref={videoRef}    style={{width: windowWidth, height: windowHeight}}   />}

Viewing all articles
Browse latest Browse all 6581

Latest Images

Trending Articles



Latest Images