electron-releases icon indicating copy to clipboard operation
electron-releases copied to clipboard

Chrome hardware acceleration settings

Open sridhard opened this issue 3 years ago • 6 comments

Hi,

When using widevine, chrome prevent screen capture/recording. But when the chrome hardware acceleration is disabled the screen record/capture is not restricted.

In castlabs electron release, chrome has hardware acceleration enabled or disabled? is there any way to modify this?

Thanks

sridhard avatar Nov 13 '22 06:11 sridhard

The capture prevention behavior and implementation generally differs between platforms, and so does hardware acceleration. Which platform or platforms are you interested in?

khwaaj avatar Nov 16 '22 13:11 khwaaj

@khwaaj in windows 10 and 11

sridhard avatar Nov 19 '22 13:11 sridhard

@khwaaj can you pls help

sridhard avatar Nov 28 '22 05:11 sridhard

GPU acceleration is enabled by default in Electron, and ECS. I wanted to look into the details of the capture protection, since I can't remember them of the top of my head, but I've not had time to do so yet (busy times).

Out of curiosity, what is it you are trying to achieve here?

khwaaj avatar Nov 30 '22 02:11 khwaaj

@khwaaj we want to prevent users from capturing our videos. When using widevine DRM screen capture is restricted. But when hardware acceleration is disabled they can capture the screen.

sridhard avatar Dec 08 '22 10:12 sridhard

👍

As I said, hardware acceleration is enabled by default. However, capture protection for Widevine L3 is "best effort", regardless of acceleration, so unfortunately there are no guarantees that you will see the same behavior over platforms, hardware, or even system versions. It is certainly better than nothing though.

khwaaj avatar Dec 08 '22 11:12 khwaaj