Si tenéis interés en el tema os recomiendo estos artículos, son relativamente accesibles para quien no tenga mucha idea (porque yo los entendí xdd) https://idus.us.es/bitstream/handle/1... https://www.elsevier.com/es-es/connec... https://www.medigraphic.com/pdfs/arcn... (este es el mejor pero también el más difícil)
To listen while using other apps, switch the player to Picture-in-Picture (PiP) during playback — it keeps playing in a small floating window (the screen stays on).
To listen with the screen fully off, in-browser playback stops by YouTube's design. Open the video in the YouTube app to keep listening where background playback is supported (e.g. with YouTube Premium).
Open in YouTube app