castlabs / electron-releases

castLabs Electron for Content Security
https://castlabs.com/resources/downstream/
MIT License
222 stars 41 forks source link

Chrome hardware acceleration settings #141

Open sridhard opened 1 year ago

sridhard commented 1 year ago

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

khwaaj commented 1 year ago

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

sridhard commented 1 year ago

@khwaaj in windows 10 and 11

sridhard commented 1 year ago

@khwaaj can you pls help

khwaaj commented 1 year ago

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?

sridhard commented 1 year ago

@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.

khwaaj commented 1 year ago

👍

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.