CEF on Delphi

Built a cool app using CEF that you'd like to share with the community? Talk about it here.

CEF on Delphi

Postby hgourvest » Wed Jun 02, 2010 10:02 am

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
hgourvest
Newbie
 
Posts: 7
Joined: Thu May 27, 2010 2:31 am

Re: CEF on Delphi

Postby AdamPajak » Mon Jun 28, 2010 12:34 pm

It works !
Thx
AdamPajak
Newbie
 
Posts: 4
Joined: Mon Mar 01, 2010 4:38 am

Re: CEF on Delphi

Postby Biblin » Wed Oct 06, 2010 6:00 am

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
Biblin
Newbie
 
Posts: 3
Joined: Wed Oct 06, 2010 5:57 am

Re: CEF on Delphi

Postby hgourvest » Thu Oct 07, 2010 2:51 am

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
hgourvest
Newbie
 
Posts: 7
Joined: Thu May 27, 2010 2:31 am

Re: CEF on Delphi

Postby Biblin » Wed Oct 13, 2010 8:52 am

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 :/
Biblin
Newbie
 
Posts: 3
Joined: Wed Oct 06, 2010 5:57 am

Re: CEF on Delphi

Postby Biblin » Thu Oct 14, 2010 6:37 am

Never mind. I did it via CefRegisterScheme() instead.
Biblin
Newbie
 
Posts: 3
Joined: Wed Oct 06, 2010 5:57 am

Re: CEF on Delphi

Postby gerdich » Wed Aug 01, 2012 11:23 am

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"?
gerdich
Newbie
 
Posts: 2
Joined: Wed Aug 01, 2012 11:04 am

Re: CEF on Delphi

Postby gerdich » Mon Oct 15, 2012 8:23 am

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!
gerdich
Newbie
 
Posts: 2
Joined: Wed Aug 01, 2012 11:04 am

Re: CEF on Delphi

Postby AlexeyPikurov » Sun Sep 01, 2013 7:28 am

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.
AlexeyPikurov
Newbie
 
Posts: 1
Joined: Sun Sep 01, 2013 7:17 am


Return to Apps Discussion

Who is online

Users browsing this forum: No registered users and 1 guest