quellus / GDTuber

A dynamic PNGTuber program made in Godot
MIT License
16 stars 11 forks source link

[Bug]: YouTube videos stop playing when GDTuber is in a maximized window #62

Open quellus opened 1 month ago

quellus commented 1 month ago

Describe the bug?

When GDTuber is focused and a maximized window, if a YouTube video is playing behind it, the YouTube video will no longer be visible.

This is the case for Edge and Google Chrome. No other browsers have been tested yet.

To Reproduce

  1. Open the browser
  2. Navigate to YouTube and play a YouTube video
  3. Open GDTuber and maximize the window
  4. YouTube video freezes

Expected behavior

The YouTube video should not freeze and still be visible as GDTuber is a transparent window.

Screenshots

No response

Godot Version

4.2.2

What Platforms does this occur on?

Windows

Additional Context

We think this is likely a feature of the browser or YouTube to save on resources when the window is not visible, but maybe there's something we can be done about it.

spaghetticodefactory commented 4 weeks ago

This is not a bug but a feature of all common browsers to save on system resources, which is particularly important on any kind of battery driven devices. If the window get's occluded / out of focus, it stops drawing pixels.

Info: https://blog.chromium.org/2021/12/chrome-windows-performance-improvements-native-window-occlusion.html

This must be disabled via browser config. If necessary, I can extend the README for the most common Browsers (Firefox, Edge, Chrome)