Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Embedding Gecko without native window?

14 views
Skip to first unread message

shangjiaxua...@gmail.com

unread,
Aug 2, 2020, 11:03:10 PM8/2/20
to
In certain cases of embedding a html rendering component into an application, the application may want to do the rendering itself, and composing the html view as it needs, firing events when the outer event loop deems the event is for the html view. A typical use case is embedding it into a game engine, and displaying it on a in-game surface or widget, only updating the texture when a repaint is issued in a recent frame.

The current code would mean implementing all the implementation specific code as if the user was porting gecko to a new platform. The headless mode seems to be a solution, but there's not much documentation on how to retrieve the frame whether in ram or vram, also there's no audio callback implemented for decoded audio.

Is there a way to use gecko primarily only as a compositor, and let the host that knows about the backend do everything else? (The data required in http request could be retrieved in a callback and stored for the duration of browser lifetime in theory.)

Emilio Cobos Álvarez

unread,
Aug 6, 2020, 1:01:49 PM8/6/20
to shangjiaxua...@gmail.com, dev-tec...@lists.mozilla.org
This is probably not the best forum to get your answer. I suggest
dev-platform@ or dev-tech-gfx@.

On Android, GeckoView should be very straight-forward to use, hopefully,
but I'm not familiar with similar efforts for desktop. I know there are
folks that do it, but I'm not particularly familiar with what's involved
in doing it.

Cheers,

 -- Emilio

> _______________________________________________
> dev-tech-layout mailing list
> dev-tec...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-layout
0 new messages