If anyone has solved it or know it in details make sure to dm me on instagram @mujtaba._2 as I am always online there anyways I have tried many things using flatlist , react-native video also ffmpeg I have faced issues installing it , is there a way to load my videos fast just like instagram reels I two to three projects with me which are highly depended on this functionality so it will be helpful . Check the code below!
<Video
ref={ref => {
this.player = ref;
}}
// source={{ uri: videoUri }}
onBuffer={this.onBuffer}
onError={this.videoError}
onLoad={() => {
console.log('Video loaded successfully');
this.player.save().then(() => {
console.log('Video saved to cache');
});
}}
style={{
// height: '100%',
// width:'100%',
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
}}
preload="auto"
paused={isPaused}
source={{ uri: videoUri }}
resizeMode={'cover'}
rezize={{ width: 480, height: 650 }}
// maxBitRate={6000000}
// autoplay
repeat={true}
// loop
// muted
// disableSeek
// fullscreen
/>
</View>
);
}}
/>