Flash doesn't work within webview


#1

Hi, I cant seem to get websites with flash to work within my webview, can anyone shed some light on how to do this please?

Thanks for your time.

My webview code (index.html):

<webview id="frame" src="https://helpx.adobe.com/flash-player.html" autosize="on" style="width:100%; height:100%; position:absolute;" plugins="on"></webview>

My browser window (index.js):

app.on('ready', function() {
    // Create the browser window.
    mainWindow = new BrowserWindow({
        width: 560,
        height: 337,
        'frame': false,
        'web-preferences': {
            'plugins': true,
            'overlay-fullscreen-video': true
        }
    });
    // and load the index.html of the app.
    mainWindow.loadUrl('file://' + __dirname + '/index.html');
    // Emitted when the window is closed.
    mainWindow.on('closed', function() {
        // Dereference the window object, usually you would store windows
        // in an array if your app supports multi windows, this is the time
        // when you should delete the corresponding element.
        mainWindow = null;
    });

    // Load menu
    Menu.setApplicationMenu(menu);
});

#2

I may be wrong, but I don’t think any extensions work in the webview element.


#3

Thanks for your reply Mark, I think you might be right, I was under the assumption that using the “plugins” parameter would work but I haven’t had any luck.


#4

Webview only supports apapi (sp?) plugins, whatever they are, and google deprecated them a while ago.