How to load video fast like tiktok or Facebook in react native

Viewed 29

I am trying to developed VideoFeed screen where user can view the number of video one by one.

I have used flatlist to render the video and used react-native-video library to play vide.

In android I have used ExoPlayer to play the video.

I am using HLS(.m3u8) url to play video, but it takes time to loading not too much but when I compare to TikTok or Facebook Story, then their's video load too fast.

How can I load the vide fast in my app.

I am using this bufferconfig to get least buffer for video but nothing get help me.

const bufferConfig = {
  minBufferMs: 100,
  maxBufferMs: 200,
  bufferForPlaybackMs: 100,
  bufferForPlaybackAfterRebufferMs: 100
};

I am stuck at this point from last couple of days.

Please anyone helps me.

0 Answers
Related