CEF Linux console client

Made a cool mod to CEF that you'd like to share with others? Discuss CEF modifications here, and view modifications that others have made.

CEF Linux console client

Postby antondev » Fri Sep 18, 2020 10:31 am

Hello. How to use CEF under Ubuntu linux without X11 - only in console. It is really? I have separate processes with browser rendered in memory buffer (simple memory block - memcpy). Do you have any example for this task?
antondev
Newbie
 
Posts: 1
Joined: Fri Sep 18, 2020 10:28 am

Re: CEF Linux console client

Postby sophialuo » Thu Feb 23, 2023 6:45 am

Have you found a solution yet?
sophialuo
Newbie
 
Posts: 2
Joined: Thu Feb 23, 2023 12:45 am

Re: CEF Linux console client

Postby ejorge » Thu Feb 23, 2023 10:27 am

Hi,
to achieve this kind of task, you may run CEF in an offscreen mode (i.e: set CefSettings.windowless_rendering_enabled = true from CefInitialize() call).
Then you may need to implement CefRenderHandler.
At this point, you still need a window system.
In our remote browser solution, we made it possible using Ozone platform, adding the following flags:
--off-screen-rendering-enabled --enable-features=UseOzonePlatform and --ozone-platform=headless

After that, you could run a cef-like browser in a docker container or whatever windowless platform.

Hope this helps.
ejorge
Newbie
 
Posts: 5
Joined: Fri Nov 29, 2019 9:49 am


Return to Modifications Forum

Who is online

Users browsing this forum: Google [Bot] and 17 guests