-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(mobile): pause background video play #17032
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
Conversation
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.
Cheers 😊
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've tested the changes on an android emulator and the video gets paused when the app is paused and plays when the app is resumed, unless it was manually paused before going out. Thanks for working on this
* fix(mobile): prevent background video playback * fix: logic for tracking app state * chore: move lifecycle handler in separate file * chore: replace useState with useRef * chore: useOnAppLifecycleStateChange * fix: removed print statement
* fix(mobile): prevent background video playback * fix: logic for tracking app state * chore: move lifecycle handler in separate file * chore: replace useState with useRef * chore: useOnAppLifecycleStateChange * fix: removed print statement
Description
Fixes #16983
How Has This Been Tested?