[system-wake-lock] Use case: playback of a list of audio tracks (#14)

leonixyz has just created a new issue for https://github.com/w3c/system-wake-lock:

== Use case: playback of a list of audio tracks ==
I was currently fiddling with `<AUDIO>`  by hooking into its `ended` event and dynamically changing its `src` attribute to be able to achieve an "audio playlist" functionality. While it works perfectly on any desktop UA, on mobile the playback stops in between tracks once the screen is locked, or the application is put in background.

Acquiring a screen wake lock is way beyond the needs for an audio player, but from my understanding it could solve the problem.

If I understand correctly, this could be a use case for the system wake lock. If not so, please accept my apologies and could anyone be so kind to point me to some other resource that might help me solving this problem?

Thanks in advance.

Please view or discuss this issue at https://github.com/w3c/system-wake-lock/issues/14 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 2 February 2023 20:41:53 UTC