Skip to content

Commit

Permalink
📝 [flash-plugin] add screenshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Aug 3, 2015
1 parent 25dc7aa commit 9598eca
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
65 changes: 35 additions & 30 deletions pepper-flash-plugin/readme.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
# Pepper-Flash-Plugin Sample

A sample shows Pepper Flash Plugin usage in Electron. More details can be found
at https://github.com/atom/electron/blob/master/docs/tutorial/using-pepper-flash-plugin.md.

## Run steps

1. Copy the pepper flash plugin under the current app directory.

2. Make ppapi-flash-version in `main.js` align with the copied plugin's.

3. Run the sample `electron path/to/electron-sample-apps/pepper-flash-plugin`.
If it succees, you can view `You have version X.X.X.X installed` in the sample page.

## Ways to find pepper flash plugin

1. Copy from Chrome Browser: you can find the plugin(`Adobe Flash Player`) location
by navigating `chrome:://plugins` in Chrome Browser.

2. Manually install Adobe Flash Player from https://get.adobe.com/flashplayer/otherversions/.
Then you can find plugin in the installed directory, ie. On Windows, the directory
is under `C:\Windows\SysWOW64\Macromed\Flash`(32-bits) and `C:\Windows\System32\Macromed\Flash`(64-bits).

## Troublesome

###Failed to load Pepper module from /path/to/pepper-flash-plugin (error: 193)

This means you mixing up the architectures. You need to make the architecture
of flash plugin consitent with Electron you run, e.g., load 32-bit flash plugin
in 32-bit Electron.
# Pepper-Flash-Plugin Sample

A sample shows Pepper Flash Plugin usage in Electron. More details can be found
at https://github.com/atom/electron/blob/master/docs/tutorial/using-pepper-flash-plugin.md.

## Run steps

1. Copy the pepper flash plugin under the current app directory.

2. Make ppapi-flash-version in `main.js` align with the copied plugin's.

3. Run the sample `electron path/to/electron-sample-apps/pepper-flash-plugin`.
If it succees, you can view `You have version X.X.X.X installed` in the sample page.

## Ways to find pepper flash plugin

1. Copy from Chrome Browser: you can find the plugin(`Adobe Flash Player`) location
by navigating `chrome:://plugins` in Chrome Browser.

2. Manually install Adobe Flash Player from https://get.adobe.com/flashplayer/otherversions/.
Then you can find plugin in the installed directory, ie. On Windows, the directory
is under `C:\Windows\SysWOW64\Macromed\Flash`(32-bits) and `C:\Windows\System32\Macromed\Flash`(64-bits).

## Troublesome

###Failed to load Pepper module from /path/to/pepper-flash-plugin (error: 193)

This means you mixing up the architectures. You need to make the architecture
of flash plugin consitent with Electron you run, e.g., load 32-bit flash plugin
in 32-bit Electron.


## Screenshot

![screenshot](/pepper-flash-plugin/screenshot/screenshot.png)
Binary file added pepper-flash-plugin/screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9598eca

Please sign in to comment.