Saturday 15 September 2012

How to add plugins to node-webkit app -



How to add plugins to node-webkit app -

how add together plugins flash , java node-webkit app?

i have iframe on node-webkit app , when view page uses flash page won't load.

any ideas?

update 1

according docs

to see whether plugins loaded, can utilize navigator.plugins in developer tools' console.

your application can utilize navigator.plugins. (for example, it's possible warn user missing plugin or utilize workaround.)

console.log(navigator.plugins) returns flash plugin available. what's wrong here?

update 2

somehow plugins working, create sure clients scheme has plugins need, or can packaged app.

still having problems though, how tell app plugin use.

there couple ways enable plugins:

1) add together webkit plugin directive package.json:

"webkit": { "plugin": true }

this give app access browser plugins user already has installed in browser.

2) add together plugin file (extension .plugin) plugins/ folder @ root of project. bundle plugin application, user not have have them installed when launch app.

more info available in node-webkit wiki.

plugins node-webkit

No comments:

Post a Comment