Page 1 of 1

CEF on Delphi

PostPosted: Wed Jun 02, 2010 10:02 am
by hgourvest
Hi,
I just commited the first release here:
http://code.google.com/p/delphichromiumembedded
Tested on Delphi 2010, Delphi 6, FreePascal 2.4.

I hope my binding will attract more developers.

Thanks to the CEF developper(s).

Henri

Re: CEF on Delphi

PostPosted: Mon Jun 28, 2010 12:34 pm
by AdamPajak
It works !
Thx

Re: CEF on Delphi

PostPosted: Wed Oct 06, 2010 6:00 am
by Biblin
Doesn't work for me. Both Cefclient.exe and Guiclient.exe crash with access violations. No stack trace available so I assume it's somewhere in the CEF code. cefclient that comes with CEF works fine. Delphi 2010

Re: CEF on Delphi

PostPosted: Thu Oct 07, 2010 2:51 am
by hgourvest
I have updated the project to work with latest CEF binaries some weeks ago.
Please use the SVN repositori to always have the latest source code.
For your convenience I have uploaded the latest version.

henri

Re: CEF on Delphi

PostPosted: Wed Oct 13, 2010 8:52 am
by Biblin
SVN version works fine cheers. Except for the following issue:

I'm trying to use OnBeforeResourceLoad() to mimic res:// protocol support and supply images from internal resources. However it doesn't appear to work. Am I doing something wrong?

Code: Select all
procedure TNotesBrowser.doBeforeResourceLoad(Sender: TCustomChromium;
  const browser: ICefBrowser; const request: ICefRequest;
  var redirectUrl: ustring; var resourceStream: ICefStreamReader;
  var mimeType: ustring; loadFlags: Integer; out Result: TCefRetval);
var
    resName : string;
    resStream : TResourceStream;
begin
    if StartsText('res://myapp.exe/', request.Url) then
    begin
        resName := copy(request.Url, 19, Length(request.Url) - 18);

        // load resource
        resourceStream := TCefStreamReaderOwn.Create(
            TResourceStream.Create(hInstance, resName, RT_HTML),
            true
        );
    end;
end;


The TResourceStream creation works fine.

I also seem to be having trouble using ICefFrame.LoadStream() (Causes AV). So most of my troubles are stream related :/

Re: CEF on Delphi

PostPosted: Thu Oct 14, 2010 6:37 am
by Biblin
Never mind. I did it via CefRegisterScheme() instead.

Re: CEF on Delphi

PostPosted: Wed Aug 01, 2012 11:23 am
by gerdich
Thank you for Delphi Cef. It works fine and is an enormous framework.
Also the video is very good.

But where is the documentation with the coding snippets? (The demos are wonderful!).

I'm finding a giant framework without any documentation.

I would like to work on the DOM.
Can I write to the DOM?
I also would like to analyse the DOM elements with a kind of treeview. Is there only the "Callback-method"?

Re: CEF on Delphi

PostPosted: Mon Oct 15, 2012 8:23 am
by gerdich
Thank You for DCEF3!
It works fine!
Chrome webgl is even faster in my delphi application than in Google Chrome itself.
(I don't know why.)

You should do more publicity!

It's a wonderful and very useful work!

Re: CEF on Delphi

PostPosted: Sun Sep 01, 2013 7:28 am
by AlexeyPikurov
Hello, Henri!

Excellent job, really. Thank you. Do you planning add WebRTC support in the latest DelphiChromiumEmbedded version?

WebRTC in not worked in the current version (CEF1 and CEF3), also simply adding/overwrite new CEF dll's does not take effect :( Project is not compiled after this operation, many errors...
Can I help you with this work? We are developing on Delphi 7 and Delphi XE3.