ceifa / steamworks.js

A steamworks implementation for nw.js/electron games
MIT License
415 stars 66 forks source link

Video tag breaks Steam Overlay #148

Open tkuhnert opened 5 months ago

tkuhnert commented 5 months ago

The overlay works fine until I have a page with an HTML video tag. Then the overlay doesn't open anymore.

Tried different file formats (mp4, webm) and react video player. When I add an YouTube video it works fine while it only shows the thumbnail. But as soon as I start the video the overlay doesn't work anymore (I assume because YouTube adds the video tag at that moment).

Trying to manually open the overlay doesn't work either: client.overlay.activateToWebPage('https://www.example.com/');

But it seems to register the request, as it opens an overlay with several tabs of example.com as soon as I navigate to a page without a video tag.

OS: Windows 11 Electron: 30.1.0 Steamworks.js: 0.3.2

tkuhnert commented 5 months ago

Did some more testing. The problem occurs with Electron v25 and newer. Works fine up to 24.8.8 I downgraded for now.