From cb4558e75b3b5019877934944c578c5a3e01f5d2 Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Mon, 31 Aug 2015 19:23:43 -0700 Subject: [PATCH] Standardize pepper flash --- docs/tutorial/using-pepper-flash-plugin.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/tutorial/using-pepper-flash-plugin.md b/docs/tutorial/using-pepper-flash-plugin.md index 20b29c4114a9..5c8820c2fad4 100644 --- a/docs/tutorial/using-pepper-flash-plugin.md +++ b/docs/tutorial/using-pepper-flash-plugin.md @@ -1,14 +1,22 @@ # Using Pepper Flash Plugin -Pepper flash plugin is now supported. To use pepper flash plugin in Electron, you should manually specify the location of pepper flash plugin and then enable it in your application. +Electron now supports the Pepper Flash plugin. To use the Pepper Flash plugin in +Electron, you should manually specify the location of the Pepper Flash plugin +and then enable it in your application. -## Prepare a copy of flash plugin +## Prepare a Copy of Flash Plugin -On OS X and Linux, the detail of pepper flash plugin can be found by navigating `chrome://plugins` in Chrome browser. Its location and version are useful for electron's pepper flash support. You can also copy it to anywhere else. +On OS X and Linux, the details of the Pepper Flash plugin can be found by +navigating to `chrome://plugins` in the Chrome browser. Its location and version +are useful for Electron's Pepper Flash support. You can also copy it to another +location. -## Add Electron switch +## Add Electron Switch -You can directly add `--ppapi-flash-path` and `ppapi-flash-version` to electron commandline or by `app.commandLine.appendSwitch` method before app ready event. Also, add the `plugins` switch of `browser-window`. For example, +You can directly add `--ppapi-flash-path` and `ppapi-flash-version` to the +Electron command line or by using the `app.commandLine.appendSwitch` method +before the app ready event. Also, add the `plugins` switch of `browser-window`. +For example: ```javascript var app = require('app'); @@ -50,8 +58,10 @@ app.on('ready', function() { }); ``` -## Enable flash plugin in a `` tag +## Enable Flash Plugin in a `` Tag + Add `plugins` attribute to `` tag. + ```html ```