Using flash player in WebEngine needs three step:
- Installing
Pepper Flash Player Plugin
- Load plugin to QT
- Enabling this feature in WebEngineView
STEP 1:
Download Pepper Flash Player Plugin
from anywhere you want (Recommend you to download it from Adobe website). Pepper plugin is another version of Flash Player plugin made to be used in Chromium-based browser, e.g WebEngine. Install it like other version of this plugin.
STEP 2:
Here says that:
The Pepper Flash player plugin can be loaded automatically if it is installed in one of the following locations, depending on the platform ...
So you need no action to done this step, because install program copies necessary files.
STEP 3:
Change QtWebEngine
version to 1.3 in your .qml
file:
import QtWebEngine 1.3
Add following line under WebEngineView
in your .qml
file:
settings.pluginsEnabled : true
Your .qml
file should be like this:
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
}
}