react-native-vlc-media-player icon indicating copy to clipboard operation
react-native-vlc-media-player copied to clipboard

Doesn't work with local videos

Open Arekjaar4 opened this issue 2 years ago • 4 comments

I'm testing the latest versions of the library and it works correctly with online videos, but it doesn't work with videos stored locally.

Arekjaar4 avatar May 02 '23 08:05 Arekjaar4

Hi, can you please post you uri?

es.

const fileName = `${RNFS.DocumentDirectoryPath}/video.mp4`
this.setState({localUri: fileName});
// then in render ...

<VLCPlayer
          style={{width: '100%', height: 250}}
          autoAspectRatio={true}
          videoAspectRatio={`${windowWidth}:258`}
          autoplay={true}
          onProgress={() => {
            console.log('onProgress')
          }}

          source={{
            uri: this.state.localUri,
          }}
        />

notjulian avatar May 24 '23 11:05 notjulian

Just letting people know who comes to see this issue, local videos are working fine.

subramani01 avatar Jan 16 '24 13:01 subramani01