A transparent hole in browser

161 views
Skip to first unread message

Nagendra K

unread,
Apr 6, 2017, 3:13:49 AM4/6/17
to Chromium-dev
Hi,

I have a requirement where my browser is in foreground and want to show a video running on a different surface in background through the browser. For this I want to make a part of the webpage transparent so the video in background is visible. I was able.to make the whole page transparent but could not make part of it transparent.
Can anyone suggest how to make a part of a webpage transparent?

Thanks and Regards,
Nagendra

Eric Lawrence

unread,
Apr 6, 2017, 11:00:50 AM4/6/17
to Chromium-dev
Can you elaborate on how specifically you were "able to make the whole page transparent"?

The capability requested could have significant security consequences (spoofing).

Patricia Aas

unread,
Apr 6, 2017, 11:31:41 AM4/6/17
to Chromium-dev, elaw...@chromium.org
I don't know if this is Nagendras issue, however, this is not uncommon in the embedded world, including Android.

The video is hardware decoded and rendered in a separate surface which in the view of the platform composer is behind the GUI surface. And the GUI surface renders a transparent "hole" above the video surface. (See SurfaceView on Android and also handling of DRM content on Android)

I do believe, however, that I have seen code in chromium to set alpha on the background color. But I seem to remember this only being supported by default on Android.

I am not sure how video rendering and decoding is handled in chromium on Android (I haven't gotten that far yet), however, Nagendra, it might be a place to look?

Kind regards,
Patricia Aas
Vivaldi Browser

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/169f1f21-72dd-44a3-98ed-6c08555d61d4%40chromium.org.

Alok Priyadarshi

unread,
Apr 6, 2017, 1:22:10 PM4/6/17
to psm...@gmail.com, Chromium-dev, elaw...@chromium.org
Add ALLOW_OVERLAY metadata to the video frames and search for "overlay" under src/cc.

Reply all
Reply to author
Forward
0 new messages