-
-
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
3.2.0 broken on Android ExoPlayer on videos with no audio tracks #1190
Comments
Same issue here. If we gave an http uri things work fine. But if I provide a local path from device cache (Recorded video using react-native-camera), It will freeze on the first frame or provide a black screen sometimes Switching backing to 3.1.0 fixed the issue (Thanks to @a-koka ) |
Ok, I'll make sure to track this down and get it fixed before I release 4.0. Thanks for letting me know. |
I can confirm this issue, also switching back to 3.1.0 |
Tracked this down to the text track selection code not behaving properly with local resources. Will get this fixed shortly. |
I'm testing on emulator (SDK 22). Downgrading 3.1.0 didn't solve my issue. I followed that steps, what I'm missing?
My component:
packages.json
|
@iLevye Your installation looks correct but just to be sure, remove the Also, did you try explayer instead of mediaplayer? Your
|
Ugh, I can't get this to act up now. Would you mind sharing a sample video and what the path looks like to make sure I have my side configured properly. Also see if there are any errors in the Android Studio logcat that you can paste here. |
@cobarx Here's the logs when playing the video
Code: <AnimatedVideo
useTextureView
resizeMode="cover"
muted
source={require('./the-video.mp4')}
/> Video: https://drive.google.com/file/d/1gt1649OyGrQGrMh7qjr9eQpHz4Y77bih/view?usp=sharing Works on 3.1.0 but broken on 3.2.0 and master. |
Thank you for uploading that video sample, that made it way easier to fix this. It turns out that the problem was when I was developing text & audio track support, I never tested with a video that didn't have audio tracks in it. So when a video like that got loaded, it tried to set it to the first audio track and there was none, so it crashed! I've gone ahead and made it disable audio output when there are no tracks to play and released version 3.2.1 with the fix (as well as on master). Thanks for reporting this and being patient. Glad we got it fixed! |
Current behavior
After upgrading from
3.1.0
to3.2.0
my full screen background videos stopped playing. They appear frozen. I tried themaster
branch, switched fromexoplayer
tomediaplayer
and also tried the hack where you flip the paused state. None of these solutions worked. Reverting back to3.1.0
fixes the problem.Reproduction steps
Tested on physical Samsung Galaxy S8 with Android 7.0 using the code below.
Platform
The text was updated successfully, but these errors were encountered: