Update using-pepper-flash-plugin.md
authormichal1106 <michal.eldar@gmail.com>
Mon, 25 Apr 2016 13:45:56 +0000 (16:45 +0300)
committermichal1106 <michal.eldar@gmail.com>
Mon, 25 Apr 2016 13:45:56 +0000 (16:45 +0300)
docs/tutorial/using-pepper-flash-plugin.md

index a9918b220ac0287bbde0a23336da4bf451288842..cdb4d04ad082b70e6d1a3a8249f703b77dd48574 100644 (file)
@@ -11,6 +11,9 @@ 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.
 
+_**Attention:** On windows, Pepper Flash plugin is win32 and it won't work with Electron x64 version. 
+<br>Get win32 version from [Electron Releases](https://github.com/electron/electron/releases)_
+
 ## Add Electron Switch
 
 You can directly add `--ppapi-flash-path` and `ppapi-flash-version` to the
@@ -20,19 +23,20 @@ For example:
 
 ```javascript
 // Specify flash path.
-// On Windows, it might be /path/to/pepflashplayer.dll
+// On Windows, it might be /path/to/pepflashplayer.dll or just pepflashplayer.dll if it resides main.js
 // On OS X, /path/to/PepperFlashPlayer.plugin
 // On Linux, /path/to/libpepflashplayer.so
 app.commandLine.appendSwitch('ppapi-flash-path', '/path/to/libpepflashplayer.so');
 
-// Specify flash version, for example, v17.0.0.169
+// Optional: Specify flash version, for example, v17.0.0.169
 app.commandLine.appendSwitch('ppapi-flash-version', '17.0.0.169');
 
 app.on('ready', function() {
   mainWindow = new BrowserWindow({
     'width': 800,
     'height': 600,
-    'web-preferences': {
+    // web-preferences is deprecated. Use webPreferences instead.
+    'webPreferences': {
       'plugins': true
     }
   });
@@ -41,6 +45,8 @@ app.on('ready', function() {
 });
 ```
 
+_**Attention:** You can check if Flash dll was loaded by running `navigator.plugins` on the Console (although you can't know if the plugin's path is correct)_
+
 ## Enable Flash Plugin in a `<webview>` Tag
 
 Add `plugins` attribute to `<webview>` tag.