Hi,
My device is a smart TV, if I do not start the B2G system, the TV
programs is shown on screen (video layer), but the graphic layer always
cover on video layer, so if I start the B2G system, the UI of B2G will
cover on TV program.
As you had said, the application can not be transparent cause the
window.css has set the background-color, but if I change the window.css#L33
to "transparent", it still does not work.
And I have tried to do this in Gecko and Hardware, I use OpenGL to draw
a transparent rectangle area in
*CompositorOGL::EndFrame*(gecko/gfx/layer/opengl) or
*compositionComplete(struct
framebuffer_device_t* dev)* (hardware/xxx/gralloc/framebuffer_device.cpp),
it will due to all the graphic layer be transparent which is in the
rectangle area , that is not what I want, what I need is just parts of HTML
elements be transparent so that the TV program can be shown in the
transparent area, and the other HTML elments can still cover on this area,
just like the launcher of LG smart TV (example be attached).
Or do you have some ideas that we can known which HTML element is
rendering in GFX module ? so that I can use OpenGL to bind the transparent
area with a HTML element.
2014-03-10 18:14 GMT+08:00 Alive <[email protected]>:
> Hi,
>
> Basically you cannot have a transparent app since we have a default
> background color for any app.
>
> https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/window.css#L33
> Not sure what's the graphic layer / video layer you mean though.
>
> Zeyun Dou <[email protected]> 於 2014/3/10 下午6:05 ��道:
>
> Hi guys:
>
> On my device, the B2G is shown on graphic layer, and the TV source is
> shown on video layer, the video layer is under the graphic layer.
>
> now I want to set the <body> tag to transparent with a rectangle area
> for watching TV in the small rectangle area, I have tried use
> "background-color: rgba(0, 0, 0, 0);" and "background-color: transparent;",
> but it does not work, how can I do it ? Anybody know this? will be very
> grateful! thanks!
>
>
> Best Regards!
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>
>
> --
> Alive C. Kuo, Senior Front-end/Software Engineer, FirefoxOS, MoCo. Taiwan,
> Taipei office.
> [email protected]
>
>
>
>
>
>
--
Best regards
Dou, Zeyun
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g