New WebRTC Video preventing computer from sleeping, even when browser tab is not active

I have a feed to a camera in my main Dashboard tab. This tab is always open so I can easily go back and control things as needed on my work and personal computers.

Starting with 2024.11, I noticed that my laptops were not sleeping properly. On my personal device with KDE Plasma, I found that Firefox was preventing sleep and also that it was showing audio playing. On KDE I am able to “block” Firefox fom inhibiting sleep, but I can’t easily do this on MacOS or Windows.

I can set media.video-wakelock on Firefox to get around this, which would affect all videos being played in Firefox. This is not the worst thing since I rarely use Firefox for video playback alone.

I haven’t found a similar option for Edge in Windows though.

Another solution is to either make sure the Lovelace Dashboard with the video feed is not open, or to remove the video feed from this Dashboard and move it elsewhere. If another Dashboard is opened and I navigate to another browser tab, t he computers sleep as expected.

I would really like to keep the behavior of my dashboard as it has been for the past year or more, so is there a way to flag this WebRTC video in a way that the browser doesn’t treat it as video that needs to keep the computer awake? Or maybe have the video pause automatically when it is not in focus?