-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to load video from android_asset #379
Comments
I might be wrong, but according to this SO
Seems like you need to use So maybe not possible to load from android_asset. You could however just use React Native asset system as mentioned in the Readme. Or pull request? 😄 |
Thank you for tell me this. But my project must use file from android_asset. So i change the file
Is it any errors? I just use it in my project now. |
Does this still work? Can this be a PR and merged? How can we do this now? In 2020? |
react-native-cli: 1.0.0
react-native: 0.36.0
react-native-video: 0.9.0
i want to use like this:
<Video source={{uri: 'file:///android_asset/source/64.mp3'}} .../>
but logcat tell me:
Failed to open file '/android_asset/source/64.mp3'. (No such file or directory)
I guarantee that the file exists.
Can't it be used in this way.
I hope someone tell me how to do.
The text was updated successfully, but these errors were encountered: