Hi, Sunny!
I am a chromium learner. My team implemented a customized browser based on chromium, and added a white screen detection ability which detects whether the page has a white screen by obtaining a thumbnail.But after adding the ability, we found that DRM protected video can't anti-screenshot. As far as I know, the implementation of the DRM anti-screenshot capability is related to the overlay, and the white screen detection ability will turn on video capture, so overlay will be skipped, which causes DRM protected video won't use overlay. Thus, I can capture the content of the DRM video area. However, capture is not allowed in the DRM area.
So I want to know about why skip overlay when video capture is on, and if I force CompositorFrameSinkSupport::IsVideoCaptureStarted() returns false, what impact will it have?
I really need your help! And thanks very much if you can help answer my questions!
On Windows with Media Foundation based protected content, skipping overlays poses an additional problem - the black frame will persist until the user interacts with the browser or some other event causes display invalidation.
With Media Foundation based playback since the media engine handles frame presentations there is no additional invalidation once the initial video setup quad is passed through the system and Dcomp handles initialized and so the black frames / missing videos persist until the next fortuitous invalidation.
I believe @Michael Tang added some logic to continue to promote MF protected videos to overlays during copy output requests. Please add us to your Code review, if you are making changes to overlay promotion for protected videos.
From: Sunny Sachanandani <sun...@chromium.org>
Sent: Monday, March 11, 2024 5:01 PM
To: jingge yu <jingg...@gmail.com>
Cc: Graphics-dev <graphi...@chromium.org>; Xiaohan Wang (王消寒) <xhw...@chromium.org>
Subject: [EXTERNAL] [Graphics-Dev] Re: why skip overlay when video capture is on.
You don't often get email from sun...@chromium.org. Learn why this is important |
--
To unsubscribe from this group and stop receiving emails from it, send an email to
graphics-dev...@chromium.org.