Skip to content

Flash support in CEF v49+ #235

Open
Open
@cztomczak

Description

@cztomczak

Windows / Mac

A system-wide installation of Pepper Flash that will be automatically discovered and loaded by CEF on Windows and OS X can be downloaded from adobe.com - choose "FP for Opera and Chromium -- PPAPI" in Step 2:

https://get2.adobe.com/flashplayer/otherversions/

After installation to enable pass the --enable-system-flash command-line argument (this is a CEF switch). In CEF Python you can set command line switches programmatically, see api/CommandLineSwitches.md.

You could also specify PPAPI flash plugin from Google Chrome installation using --ppapi-flash-version and --ppapi-flash-path switches. Example path would be: "C:\Program Files (x86)\Google\Chrome\Application\47.0.2526.106\PepperFlash\pepflashplayer.dll". Note that Google Chrome version and CEF Python version should match - when using eg. cefpython v57 use pepper flash from Google Chrome v57.

Windows bug - console window

On Windows Pepper flash may open a console window. A few solutions are provided in this topic:
https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=13094&start=20

Upstream Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=508002

Linux

Adobe does not provide a system-wide install of the Pepper Flash plugin on Linux. To load the plugin included with Google Chrome:

  1. Install a version of Google Chrome that is close to the CEF version.
  2. Specify the Flash library path and version via the command-line. The version number
    can be identified by viewing the manifest.json file in the same directory as libpepflashplayer.so.
cefclient --ppapi-flash-version=17.0.0.141 --ppapi-flash-path=/opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so 

In CEF Python you can set command line switches programmatically, see api/CommandLineSwitches.md.

Upstream

Upstream issue 1586:
https://bitbucket.org/chromiumembedded/cef/issues/1586/add-pepper-flash-plugin-support

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions