Questions tagged [cef4delphi]

For questions about Delphi code using the CEF4Delphi component

CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC.

CEF4Delphi is based on DCEF3, made by Henri Gourvest. Its license applies to CEF4Delphi:
Usage allowed under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1.1

25 questions
4
votes
1 answer

How to Invoke the Delphi function from JavaScript using Cef4Delphi

I am beginner in Delphi. Presently using Delphi Berlin version. I am trying to invoke Delphi function/method from JavaScript. For example I want to open a new Delphi form on clicking on html button with additional data attribute. HTML CODE
SP Sarkar
  • 98
  • 7
2
votes
1 answer

How to play live stream YouTube videos using CEF4Delphi?

I wanted to learn the CEF4Delphi component and came across a problem. CEF4Delphi does not play all videos from the YouTube site. Normal videos play normally but no live streams. Please me help in this problem. (Used: Delphi - Rad Studio 10.1…
2
votes
1 answer

CEF4Delphi and DUnit

I am testing a few processes I have created with CEF4Delphi in my application via DUnit. The following is a MCVE to reproduce the issue: unit MyUnit; interface {$I cef.inc} uses Winapi.Windows, Winapi.Messages, System.SysUtils, …
pio pio
  • 732
  • 1
  • 7
  • 29
2
votes
1 answer

CEF / Chromium render process CPU usage

I have used CEF4Delphi to embed CEF / Chromium in my Delphi XE 10.1 application. I am currently at CEF Version 3.2987.1597.gffc5773 (Chromium Version 57.0.2987.110), 32 bit. I can see the render process in the Windows Task Manager normally staying…
sjur
  • 53
  • 1
  • 4
1
vote
1 answer

CEF4Delphi certificate selection window

I'm using CEF4Delphi to browse a site, this site asks for a certificate installed on windows, the documentation says I need to select this certificate in the "SelectClientCertificate" event in a callback function passing the index, my question is…
MariINova
  • 323
  • 4
  • 15
1
vote
2 answers

CEF4Delphi Handle Opening a Tab (and Download a File)

I have a particular problem with handling a download link within Chromium. The issue is not so much the download (answered here quite well: CEF4 Chromium Delphi 10.2 Tokyo - how to handle download dialogue? ) ...but this particular link is tagged…
Robbie Matthews
  • 1,404
  • 14
  • 22
1
vote
2 answers

Issue with invalid_grant error with Google Oauth2

Cheers everybody, we have been deeply reading google documentation on exchanging access_token from google in order our (delphi)desktop application to SSO with google from server side. Here is the payload we send first look…
1
vote
1 answer

How to stay logged in browser CEF4Delphi, without all browser history?

In CEF4Delphi it is possible to maintain the browser session with GlobalCEFApp.PersistSessionCookies := True; GlobalCEFApp.Cache := 'cache_folder'; thanks to this, one can keep embeed browser logged in, for example, mail. Unfortunately, this…
1
vote
1 answer

DCEF4 virtual keyboard is not showing up

I am using CEF4Delphi from https://github.com/salvadordf/CEF4Delphi I am editing PopupBrowser2 example. There is Chromium1 component. I have added event, that is supposed to notify when keyboard is requested: procedure…
1
vote
1 answer

How to set custom cookie data location in Chromium with CEF4Delphi

In older version of their package Chromium 49.0.2623.110 OldCEF4Delphi there was a function to set custom location of the cookies on the disk LCookieManager.SetStoragePath(FCookiePath,False,nil); but in the newest CEF4Delphi this function is…
Flash
  • 466
  • 6
  • 16
1
vote
2 answers

How load a local html file with Chromium Embedded (CEF)?

I want load a html file into Chromium (CEF4Delphi) but nothing is showed, only a white page. Is possible load a local html file using the following approach? Here is html file. Also have other trouble that is everytime that Chromium is executed,…
user9672569
0
votes
0 answers

【delphi10.3&cef&win64】How to upload file without OpenFileDialog shown

In versions before 100, the Chromium1FileDialog method [callback. Font (selectedAcceptFilter: Integer; const filePaths: TStrings)] can directly add selected images without opening the file selection box. However, after version 102, the…
xsfhacg
  • 1
  • 1
0
votes
1 answer

Cef4delphi calls chromium.Loadurl() to cause the program to top

In Delphi rad studio 10.3, I use cef4delphi to call chromium.Loadurl() or chromium.Browser.Mainframe.Loadurl(), which will cause the top of the program. How can I solve it
0
votes
2 answers

2 instances of Chrome on a form with different cookies

I'm using CEF 4. There are two instances of chromium on the form, they both use the same settings: procedure CreateGlobalCEFApp; var inicef: Tinifile; begin GlobalCEFApp := TCefApplication.Create; GlobalCEFApp.LogFile…
Sten
  • 9
  • 1
0
votes
0 answers

Delphi get cookies from THTTPRIO

I have an SOAP Webservice that has a Login method, currently after I call it the website gets opened by the TWebBrowser control and use the session cookie from the webservice. But now I try to migrate to CEF4DELPHI instead of TWebBrowser. I try to…
Sebastian
  • 952
  • 1
  • 14
  • 41
1
2