chromium-embedded

Cant play video (mp4) in Chromium Embedded Framework

馋奶兔 提交于 2019-12-06 03:26:24
问题 I am working with windows forms app and embedded Chromium Embedded Framework(CEF) everything working well except Video and Audio. How can i make it work. Thanks in advance 回答1: CEF doesn't supports propriety audio and video formats like mp3, mp4. it supports open formats. for more detailed info check out https://code.google.com/p/chromiumembedded/issues/detail?id=371 回答2: you need to compile CEF with options to enable proprietary codecs (i.e. H.264 and MP3). you can read my answer with all

Cefpython app with html/js files in local filesystem

北慕城南 提交于 2019-12-06 02:39:58
I'm trying to make a hybrid python-js application with cefpython. I would like to have: JS and HTML files local to the cef python app (e.g. in './html', './js', etc) Load one of the HTML files as the initial page Avoid any CORS issues with files accessing each other (e.g. between directories) The following seems to work to load the first page: browser = cef.CreateBrowserSync(url='file:///html/index.html', window_title="Rulr 2.0") However, I then hit CORS issues. Do I need to run a webserver also? Or is there an effective pattern for working with local files? Try passing "disable-web-security"

Can't run Xilium. CefGlue built on Visual Studio 2012

我的未来我决定 提交于 2019-12-05 22:50:44
'Hi all, I downloaded Xilium.CefGlue and built the source on Visual Studio (xilium-xilium.cefglue-b22787699e57), I also downloaded cef_binary_3.1453.1236_windows_xilium and copied the libcef.dll to the Xilium Winforms demo as the apps requires it to run but when I run it I get the following error: An attempt was made to load a program with an incorrect format. Exception from HRESULT: 0x8007000B I've targeted x86, can I get some help? Thanks Ok, here's the steps I used to get the samples working in VS 2012: Get the code from Xilium.CefGlue on github . (The one I used was c3d674a3a8 ) Open the

Chromium Embedded Framework bind key press

蓝咒 提交于 2019-12-05 19:53:27
I saw this thread on the official forum of Chromium Embedded Framework but it seems that there were no solutions given. To be honest, I'm not comfortable with C++ platform. Could you help me provide a snippet that binds CEF to the webapp. I wanted to control the application using the default controls: ALT + F4 - close F5 - refresh browser Sharadh Short Version: Implement CefKeyboardHandler , specifically OnPreKeyEvent() ClientHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> browser, const CefKeyEvent& event, CefEventHandle os_event, bool* is_keyboard_shortcut) { if (os_event && os_event->message =

Chromium embedded framework: Creating an object fails when using “ExecuteFunctionWithContext”

点点圈 提交于 2019-12-05 19:32:12
Overview I am using chromium embedded framework (cef) on Delphi 2009, it is the latest release. Error I can use ExecuteFunctionWithContext to successfully execute a JavaScript callback routine and I can supply it with arguments. However, when I try and use TCefv8ValueRef.CreateObject(nil); an access violation occurs in the libcef library. Assumptions Pushing an argument to the JavaScript callback works for TCefv8ValueRef.CreateString and all the other Cefv8Value types. The TCefv8ValueRef.CreateObject(nil) function works fine when it is used as a return value for a chromium extension. (As

Chrome Dev Tools export Elements HTML

此生再无相见时 提交于 2019-12-05 09:11:29
To debug my chromium-embedded application I am looking for a function to get the source code of the web page from withing the chrome developer tools. I basically want the HTML tree shown in the 'Elements' tab, the actual HTML DOM, as HTML text. Does this functionality exist? How can I use it? As I use CEF I do only have the chrome dev tools available and not the full browser. I cannot use the right-click context menu because I want to see the current manipulated DOM and not the original source. I want to use this functionality for debugging purpose so that I can diff two different HTML trees.

Delphi TChromium / DCEF3 - Constant Access Violations

a 夏天 提交于 2019-12-04 17:15:44
I'm trying to use DCEF3 TChromium as a replacement for TWebbrowser component. I downloaded the packages and installed it on my IDE (Delphi 2007). I'm testing the demo on demos\guiclient and when i try to open certain web pages, i get tons of Access Violation exceptions and my app crashes. If i'm inside Delphi, i get this exception before Delphi itself crashes : 'Assertion failure : 'item.src' in \win32scr\DBKIMPL.CPP' at line 2691' One example of a page that has this problem is www.whatsmyuseragent.com One example of a page that opens correctly is www.google.com After a lot of testing i found

Override mouse using Chromium embedded framework

一曲冷凌霜 提交于 2019-12-04 14:06:37
问题 Is it possible that in file cefclient_win.cpp LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) mouse messages are filtered out, as I only get WM_MOUSEMOVE message through? It seems like left or right clicks are handled before the WndProc gets a hold of them. How do I disable right mouse click in particular? 回答1: The way I solved it was by adding a mouse hook to the thread created by CEF for each browser window: // Hook to disable right mouse clicks LRESULT

How to set different cookies for different instances of Chromium embedded browser

血红的双手。 提交于 2019-12-04 10:54:34
I'm working on an application that requires multiple embedded instances and each of this instance logins to the same external site with different authentication details. I'm using CEF (Chromium embedded framework ) in Delphi , I have a folder that i stored the cookies on it for different instance of my browsers , So i have this code in the first unit procedure TForm2.Button1Click(Sender: TObject); begin form33 := Tform3.Create(nil); form33.Show; end; when the form33 created procedure TForm3.FormCreate(Sender: TObject); var CookieManager: ICefCookieManager; folder: string; begin Randomize;

DCEF3 - Delphi Chromium Embedded - communication between Javascript and application code

强颜欢笑 提交于 2019-12-04 09:31:37
I'm using DCEF3, revision 24038bd3a600, and I should want to communicate between Javascript code in browser and Delphi code of application. I know how it can be accomplished from Delphi code and Javascript, by using framework's method 'ExecuteJavascript', but what about the reverse (from Javascript to Delphi/application code) ? I haven't found such a situation in demos/examples (GUIclient, specifically...). There is a guiclient demo if official source code to do this. Look at main.pas file. The code below is a class extension : class function TTestExtension.hello: string; begin Result :=