{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6358","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6358/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6358/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6358/events","html_url":"https://github.com/electron/electron/issues/6358","id":164002862,"number":6358,"title":"PPAPI - Registering pepper plugins","user":{"login":"kjpou1","id":640466,"avatar_url":"https://avatars.githubusercontent.com/u/640466?v=3","gravatar_id":"","url":"https://api.github.com/users/kjpou1","html_url":"https://github.com/kjpou1","followers_url":"https://api.github.com/users/kjpou1/followers","following_url":"https://api.github.com/users/kjpou1/following{/other_user}","gists_url":"https://api.github.com/users/kjpou1/gists{/gist_id}","starred_url":"https://api.github.com/users/kjpou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjpou1/subscriptions","organizations_url":"https://api.github.com/users/kjpou1/orgs","repos_url":"https://api.github.com/users/kjpou1/repos","events_url":"https://api.github.com/users/kjpou1/events{/privacy}","received_events_url":"https://api.github.com/users/kjpou1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T05:47:28Z","updated_at":"2016-07-06T09:08:45Z","closed_at":"2016-07-06T09:08:44Z","body":"* Electron version: 1.2.5\r\n* Operating system: Windows 10 \r\n\r\nMore a question than an issue/enhancement right now as may not understand the process fully and am missing something.\r\n\r\nRight now to use plugins we have to register them via `app.commandLine.appendSwitch('register-pepper-plugins', 'XXXXXX;application/x-ppapi-hello');`\r\n\r\nWe then need to activate the plugins when creating the browser windows with:  \r\n```\r\n'webPreferences': {\r\n                'plugins': true\r\n            }\r\n```\r\n\r\nThen we specify in the `<embed> `tag type 'application/x-ppapi-hello' which tells the embedded object that for this `<embed>` tag to used the plugin registered above.\r\n\r\nThis is working fine but was wondering if there was a more transparent way to do this with a configuration file of some sort.\r\n\r\nIs there an existing way where we can specify the plugin type and the plugin module to load when the type is loaded from the `<embed>` tag.  Basically it would automatically load and register those modules bypassing the `appendSwitch` and `webPreferences` configurations.\r\n\r\nThanks in advance for any information.\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/230718726","html_url":"https://github.com/electron/electron/issues/6358#issuecomment-230718726","issue_url":"https://api.github.com/repos/electron/electron/issues/6358","id":230718726,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2016-07-06T09:08:44Z","updated_at":"2016-07-06T09:08:44Z","body":"Unfortunately that's how Chromium's plugin system works, you have to register the plugins before loading the page, there is no way to dynamically load a plugin on request."}}
{"actor":{"display_login":"zcbenz"}}