If this may help you, some browser allow youtube videos in PIP (e.g. Orion). That keeps the video going, you can scale it down in a corner.
Otherwise the other option is to drag the tab out to a window of its own, they can't know it's not visible, at least that works for Twitch ads.