CEF integration into Juce framework

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: CEF integration into Juce framework

Postby bobmanc » Sun Mar 08, 2015 10:49 am

I updated it to 3.2171.
The debug.log file says this.

[0306/185628:ERROR:renderer_main.cc(207)] Running without renderer sandbox
[0306/185629:ERROR:singleton_hwnd.cc(43)] Cannot create windows on non-UI thread!
[0306/185645:WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue
bobmanc
Newbie
 
Posts: 9
Joined: Wed Feb 15, 2012 4:57 pm

Re: CEF integration into Juce framework

Postby magreenblatt » Sun Mar 08, 2015 4:37 pm

bobmanc wrote:I updated it to 3.2171.
The debug.log file says this.

[0306/185628:ERROR:renderer_main.cc(207)] Running without renderer sandbox
[0306/185629:ERROR:singleton_hwnd.cc(43)] Cannot create windows on non-UI thread!
[0306/185645:WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue

All of these messages are expected when running with the sandbox disabled.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: CEF integration into Juce framework

Postby bobmanc » Sun Mar 08, 2015 4:40 pm

Are you saying to turn sandbox on or ignore the errors?
bobmanc
Newbie
 
Posts: 9
Joined: Wed Feb 15, 2012 4:57 pm

Re: CEF integration into Juce framework

Postby magreenblatt » Sun Mar 08, 2015 4:41 pm

bobmanc wrote:Are you saying to turn sandbox on or ignore the errors?

Yes.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: CEF integration into Juce framework

Postby bobmanc » Sun Mar 08, 2015 4:46 pm

Which should I do?

1) turn sandbox on

2) ignore error
bobmanc
Newbie
 
Posts: 9
Joined: Wed Feb 15, 2012 4:57 pm

Re: CEF integration into Juce framework

Postby magreenblatt » Sun Mar 08, 2015 5:25 pm

You should enable the sandbox if possible. See include\cef_sandbox_win.h for the requirements on Windows.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: CEF integration into Juce framework

Postby Czarek » Mon Mar 09, 2015 2:34 am

bobmanc wrote:Which should I do?

1) turn sandbox on

2) ignore error

I think that when you display your own content then there is no advantage of using sandbox. Only useful when displaying third party websites, as it's a security feature.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF integration into Juce framework

Postby postlude » Thu Oct 20, 2016 6:50 am

steren wrote:Hi,I am currently prototyping an integration of CEF into the C++ Juce framework.
My goal is to create a CEF-based browser Juce component to be included into Juce applications.

Are you aware of any existing result with Juce and CEF?

I intend my main Juce application to be also a CefApp and have only one CefClient created at app startup that would create one browser per"view-component". Would this design make sense?

Regarding the display, would you recommend trying to create a Juce component class that is also a CefBrowser class?
Or should I better use an Offscreen Rendering technique and paint the result into Juce's paint() method?

Thanks a lot for your help.


Hi steren, did you get this working in the end? If so would you be willing to share the code for your component? I think it would be of interest to the JUCE community as several people have asked about this.

I'm considering a similar thing myself and for something like this it would be great to avoid duplicating effort if I can!

Cheers,

Jamie
postlude
Newbie
 
Posts: 4
Joined: Thu Oct 20, 2016 6:16 am

Previous

Return to Support Forum

Who is online

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