-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix video crashing on Android because of unresolved ExoPlayer breaking changes #154
fix video crashing on Android because of unresolved ExoPlayer breaking changes #154
Conversation
…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 this and possibly release new react-viro version if all is ok? |
…is already the main thread - this fixes also problem with disposing the video instance when AR scene is unmounted as it causes `pause()` to be called and somehow deadlocks threads
… the AVPlayer instance (random ANR could be caused by the app waiting for the main thread to complete releasing the AVPlayer instance)
I am reviewing this PR |
Hello @doranteseduardo , |
|
Hello @doranteseduardo , any update? I spent quite some time with this PR so it's a bit demotivating to get the PR closed with no discussion or attempt to resolve any issues you discovered.. |
@Buthrakaur I am sorry for the late response, I have been reviewing requests from the users on Discord. |
Update: Thanks so much for bringing this fix to us :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and works like a charm.
This fixes video crashing on Android because of unresolved ExoPlayer breaking changes (mainly because of the new threading model https://developer.android.com/reference/androidx/media3/exoplayer/ExoPlayer#threading-model)
ReactVision/viro#229