-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
local video file doesn't play on Android release app #1324
Comments
Hi! did you find any solution to this problem? |
This happens in IOS also. |
Same issue |
In my case I fixed it by using the old Android Media Player, replacing:
with
|
Hello, Same issue |
This happens in both android and IOS, I copied media files in my project directory as well, |
It seems like there is issue with video files inside |
maybe it's video format issue |
Works fine on fullscreen, but when putting it in a view on Android, the audio plays, but there is nothing on the screen! In the emulator in debug it shows up, but in production it is blank with just the audio. iOS works great. I tried putting the video outside of the assets folder, no luck. Anymore solutions? |
OK I feel dumb. My solution was obvious. My video files are .mov format and obviously Android does not support .mov because Apple made it. Converted to .mp4 and walla. |
Current behavior
I have several local files that I'm loading in the app, on different screens. The thing is, in emulator works perfect, and if I run the app directly in the Android device, the video works, BUT, once I build the release app, the video doesn't show, is just a black view, with nothing working.
Reproduction steps
A 1, 2, 3, etc. list of what's needed to see the issue happen.
<Video style={styles.video} source={video} repeat muted={true} fullscreen={false} resizeMode="cover" bufferForPlaybackMs={500} />
Expected behavior
The video should show.
Platform
Which player are you experiencing the problem on:
More Info:
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3",
"react-native-video": "^3.2.0",
Building the app on:
macOS High Sierra 10.13.6
Android Studio 3.1.4
The text was updated successfully, but these errors were encountered: