-
Notifications
You must be signed in to change notification settings - Fork 164
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
Video crashing on Android because of ExoPlayer breaking changes #229
Comments
related issue from the original repository: viromedia/viro#1004 |
I just tried current version of viro-starter-kit with latest viro release (react-viro 2.41.0) and the issue still persist - the exception is a bit different now though:
|
…g changes (mainly because of the new threading model https://developer.android.com/reference/androidx/media3/exoplayer/ExoPlayer#threading-model) ReactVision/viro#229
Hello @robertjcolley , could you please review the PR ReactVision/virocore#154 and possibly release new react-viro version with the fix? |
@Buthrakaur I've just emailed you the module that I managed to get working with your fix. You helped me a lot |
Currently having this issue on my expo dev build app. I don't get any error message, the app just crashes. |
Hi @Dani2097 , I'm struggling to find the email from you - could you please mention your email address or post the message simply here? |
…g changes (mainly because of the new threading model https://developer.android.com/reference/androidx/media3/exoplayer/ExoPlayer#threading-model) ReactVision/viro#229
You need to use new dependcy on Android // For media playback using ExoPlayer |
the PR ReactVision/virocore#154 with fix was already merged so I'm closing this - waiting for release though |
Requirements:
Please go through this checklist before opening a new issue
Environment
Please provide the following information about your environment:
@viro-community/react-viro
2.23.0 and React Native 0.71.3. We don't specify exoplayer version in ourbuild.gradle
file so it's picked up from viro.Description
The app crashes when
ViroVideo
component is added to the AR scene with an exception:There was a breaking change in exoplayer2 in the
AdaptiveTrackSelection.Factory
method which was handled in this commit: ReactVision/virocore@6bad81c but it looks like react-viro somehow didn't get the virocore version with this change even though it was merged into virocore years ago and links exoplayer version AFTER the breaking change which causes the exception and app crash. I tried to understand versioning of virocore vs react-viro but I must admit I got completely lost. I believe the is some mismatch between react-viro and virocore versions.Reproducible Demo
@viro-community/[email protected]
ViroVideo
componentThe text was updated successfully, but these errors were encountered: