无法使用Qt5.6在QtWebEngine中加载Pepper Flash插件 [英] Cannot load pepper flash plugin in QtWebEngine with Qt5.6
问题描述
我制作了一个简单的Web浏览器,但是访问
I made a simple web browser but when I access to
https://get.adobe.com/jp/flashplayer/
说
Adobe Flash Player is already installed, but disabled
但是,当我阅读 http://doc.qt.io/qt-5/qtwebengine-platform-notes.html 它说,如果有正确的dll文件,则应该自动加载Pepper Flash插件.我检查了C:\ Windows \ System32 \ Macromed \ Flash \,并且确定在那里有pepflashplayer32_21_0_0_213.dll.
However as I read http://doc.qt.io/qt-5/qtwebengine-platform-notes.html It says that pepper flash plugin should be automatically loaded if there is a proper dll file. I checked my C:\Windows\System32\Macromed\Flash\ and I'm sure that I have a pepflashplayer32_21_0_0_213.dll there.
然后我还要设置
QWebEngineSettings *websetting = QWebEngineSettings::defaultSettings();
websetting->setAttribute(QWebEngineSettings::PluginsEnabled, true);
但仍然没有希望. 有谁知道如何使用QtWebEngine启用Flash?
but still no hopes. Anyone knows how to enable flash with QtWebEngine?
推荐答案
好的,我在这里得到了一个有效的答案:
OK I got a working answer here:
https://forum.qt.io/topic/66187/cannot-load-pepper-flash-plugin-in-qtwebengine-with-qt5-6/3
对我来说,我必须从chrome复制pepflashplayer.dll.看来从Adobe安装的pepflashplayer * .dll无法正常工作.
For me I have to copy pepflashplayer.dll from chrome. It seems that installed pepflashplayer*.dll from adobe does not work.
这篇关于无法使用Qt5.6在QtWebEngine中加载Pepper Flash插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!