如何在NWJS上启用闪存?

时间:2016-03-12 19:06:43

标签: node.js nw.js

如何在NWJS上启用闪存?我当前的package.json

{
  "main": "index.html",
  "name": "NAME",
  "description": "NAME.",
  "version": "0.1.0",
  "chromium-args": "--ppapi-flash-path=plugins/pepflashplayer.dll --ppapi-flash-version=20.0.0.306",
  "webkit": {
    "plugin": true
  }
}

我在APP / plugins / pepflashplayer.dll中有lib但它不起作用。

1 个答案:

答案 0 :(得分:1)

对于未来的用户:http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Flash%20Plugin/#using-flash-plugin

注意:我认为你不需要使用chrome-args来做这件事,但无论如何你可以通过以下方式检查你的插件:

window.location="chrome://plugins"

您可以通过执行以下操作检查nwjs版本中是否有此标志:

window.location="chrome://flags"