1

I am using react-native-video to play videos and it works well in React Native asset system. But in my case, I must to read the video from android asset folder. Does anyone can help me?

Below are the paths I've tried, but unfortunately none of them work.

source={{ uri: 'file:///android_asset/test.mp4' }}
source={{ uri: 'asset:/test.mp4' }}

Related References:

Using file path in react-native-video

Path of Android asset folder

The same issue but he fix it by adjusting source code

Read the video from android raw folder but not my case

Joe199382
  • 199
  • 1
  • 12

0 Answers0