WebEngineView QML needs a flash player to install

I use WebEngine Qt Quick Minimal Example to create a simple program to load a page containing some texts and videos that is shown using Adobe Flash Player. I see a video in Google Chrome, but when I try to load a page in the above example, an error appears instead of Adobe Flash Player:

This video requires Adobe Flash Player 10.2

I downloaded the Adobe Flash Player plugin for each browser, but no changes happened!

+4
source share
1 answer

Using Flash Player in WebEngine requires three steps:

  • Installation Pepper Flash Player Plugin
  • Download the plugin in QT
  • Enabling this feature in WebEngineView

STEP 1:

Pepper Flash Player Plugin , ( Adobe). Pepper - Flash Player, Chromium, WebEngine. , .

2:

, :

Pepper Flash Player , , ...

, .

3:

QtWebEngine 1.3 .qml:

import QtWebEngine 1.3

WebEngineView WebEngineView:

settings.pluginsEnabled : true

.qml :

import QtQuick 2.0
import QtQuick.Window 2.0
import QtWebEngine 1.3

Window {
    width: 800
    height: 600
    visible: true
    WebEngineView {
        anchors.fill: parent
        url: "http://127.0.0.1"
        settings.pluginsEnabled : true
    }
}
+3
source

Source: https://habr.com/ru/post/1657349/


All Articles