https://kotlinlang.org logo
Title
c

Colton Idle

04/16/2023, 9:12 PM
I'm using accompanist webview here: https://google.github.io/accompanist/web/ Showing a youtube video. Super easy stuff. BUT when I press the home button on my android phone... the video's audio keeps playing. How can I make sure the audio stops when I go to a different screen in my app or go home on my phone?
e

ephemient

04/16/2023, 9:24 PM
it should probably wire up onPause/onResume
c

Colton Idle

04/16/2023, 9:25 PM
oOo. lemme try when im home. that seems promising, but i did try a couple of regular onResume, onPause efforts before to no avail
e

ephemient

04/16/2023, 10:01 PM
this is completely untested but possibly something along these lines would work