This message was deleted.
# cloud
s
This message was deleted.
e
Which sdk is this using?
l
Version 1.12.3
e
The js client?
l
Yes!
Could this be an issue?
d
@limited-hairdresser-59618 you'd want to take a look at Media session API: https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API the default behavior isn't defined and can be platform specific
l
Hi David, thank you, will look into this
@dry-elephant-14928 hi David! We tested it out, somehow it's still the same. Most android devices cuts off the audio feed at lock screen either immediately or 10-20 seconds later
f
Hi @dry-elephant-14928 @eager-raincoat-52616, We are also facing similar issue where as screen get locked (after 20-30 seconds) in android and ios - iPhone, Huawei Y9s and POCO F3 when media is shared cc : @boundless-jackal-7234
e
react-native or on web?
f
in mobile web using react js application. We use
"@livekit/components-react": "^1.1.8"
Also we have another react js ui that use the following and we are not observing the issue on that. it uses the following;
Copy code
"@livekit/egress-sdk": "^0.1.1",
"@livekit/react-components": "^1.0.2",
"livekit-client": "^1.3.2",
e
cc @polite-kilobyte-67570
p
as dz mentioned above the best way to handle this is using the media sessions API. If that still doesn't work (it should) then it would be helpful to get some debug level logs
another option you can try is to set
expWebAudioMix = true
on the roomOptions
f
Thanks @polite-kilobyte-67570, will check and get back to you. Our scenarios are some what differ ( the issue happened when whiteboard shared and / or external media player is in playback ( youtube, vimeo, etc.). But will check the given options and confirm in seperate thread if the results are differ.
p
ah, if it’s about the device locking during playback, have a look at https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
f
Yes, this is about screen wake lock api. We added it , but for some device it seems it doesn't support. Wondering how it was handle in old "`@livekit/react-components": "^1.0.2"`, we are not observing screen lock issue for same mobile devices
p
hm, there weren’t any changes in regard to wake lock API 🤔
f
Thanks @polite-kilobyte-67570. Will check and confirm