Skip to content

KnowledgeBase

Czarek Tomczak edited this page Feb 8, 2016 · 13 revisions

Knowledge Base

Flash works in Google Chrome, but doesn't work in CEF Python

Google Chrome bundles a proprietary version of Flash called Pepper Flash. CEF Python does not include Flash out of the box. You need to install Flash Plugin (PPAPI version) in your OS:

  1. Go to http://get.adobe.com/flashplayer/otherversions/
  2. Select an operating system
  3. Select PPAPI version of plugin (for Opera and Chromium)

NOTE: in old CEF you had to download NPAPI plugin, in newer CEF (Chrome 47 release) you need to download PPAPI plugin.

Black/White browser screen

If you get a black or white screen then this may be caused by incompatible GPU (video card) drivers. There are following solutions to this:

  1. When CEF Python is updated to a newer Chrome version then the problem may be fixed. Check with current Google Chrome if this is the case.

  2. Try updating your video card drivers to the latest version available.

  3. You can disable GPU hardware acceleration by adding the "disable-gpu" and "disable-gpu-compositing" command line switches. See the CommandLineSwitches wiki page. Note that this will degrade performance if you're using any advanced 3D features. It will affect 2d accelerated content as well.

Note that when web page uses WebGL then the black screen may still appear even after disabling GPU hardware acceleration. However that shouldn't be a concern as it's not supposed to work anyway. Though you may not see a nice message about WebGL not being supported. All other websites that do not use webgl will work fine.

Windows XP support

On XP you should disable GPU acceleration by using the "disable-gpu" and "disable-gpu-compositing" switches. See the Command line switches wiki page.

Feature X works in Google Chrome, but doesn't work in CEF Python

CEF Python embeds Chromium Embedded Framework which is based on Chromium browser. Functionality may differ a bit from Google Chrome. The browser from Google is a proprietary software that for example includes MPEG-4/H.264 codecs that aren't included in the open source Chromium. CEF also doesn't support Chrome Extensions.

To see if some feature is working or a bug is fixed in newer CEF release perform the following steps:

  1. Go to http://www.cefbuilds.com/
  2. Choose a branch
  3. Download TestApp binaries
  4. Run cefclient.exe

How to capture Audio and Video in HTML5?

To be able to use the getUserMedia() function you need to set the "enable-media-stream" switch. See the Command line switches wiki page.

Mac 32-bit support

Since version 39, Chromium and Google Chrome are not available in 32-bit version for MAC OS X.

Download cefpython 31.2 for Mac 32-bit from Google Drive archive. This release includes both 32-bit and 64-bit binaries.

Clone this wiki locally