Cannot load pepper flash plugin in QtWebEngine with Qt5.6 thorh5nc 2 years ago I made a simple web_qtwebengine ppapi register-程序员宅基地

技术标签: QT  

  • thorh5nc 

    I made a simple web browser but when I access to

    https://get.adobe.com/jp/flashplayer/

    It says

    Adobe Flash Player is already installed, but disabled
    

    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.

    Then I also set

    QWebEngineSettings *websetting = QWebEngineSettings::defaultSettings();
    websetting->setAttribute(QWebEngineSettings::PluginsEnabled, true);
    

    Similarly, I set my webView->setting() and webView->page()->setting() but still no hope.
    but still no hopes. Anyone knows how to enable flash with QtWebEngine?

    BTW. I did not compile qtwebengine nor qt by myself.


    Log in to reply
     

  • ThatDud3 

    All I do is to copy pepflashplayer.dll and manifest.json from Google Chrome (I don't have standalone pepper flash) to C:\Windows\System32\Macromed\Flash and then in main() or MainWindow() ctor to enable plugins globally:

    QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);
    

    Edit: I just noticed you are using 32 bit version of pepper flash (pepflashplayer32_*.dll) so make sure you are using also 32-bit Qt or if you want to use 64-bit Qt then copy 64-bit version of flash-player.

    ...I'm not sure if 64bit Qt will work with 32 bit player (I copied my dll from C:\Program Files (x86)\ which is odd because my Chrome browser is 64 bit but there was nothing in C:\Program Files\ - but it works )

    OT: I find it really confusing how this browser:
    Google Chrome Version 50.0.2661.75 m (64-bit)
    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36
    is actually installed in
    C:\Program Files (x86)\Google\Chrome\Application\50.0.2661.75\PepperFlash


  • thorh5nc 

    @ThatDud3
    Thanks a lot! I get it work now.
    It seems that the newest standalone pepflashplayer*.dll as official documentation writes does not work.
    My OS is 64bit but I'm targeting 32bit platform. I just copied chrome's pepflashplayer.dll to both directories and it works.


  • ThatDud3 

    Please mark as [SOLVED]


版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/zx249388847/article/details/80549198

智能推荐

小米机器人虚拟墙设置_扫地机器人虚拟墙介绍及怎样设置-程序员宅基地

文章浏览阅读2.4k次。原标题:扫地机器人虚拟墙介绍及怎样设置现在高端的智能吸尘器产品都配备了虚拟墙功能,能够有效正确指挥扫地机工作。那么,对于我们在日常使用中该如何使用虚拟墙呢? 什么是虚拟墙?很多人购买产品的时候对虚拟墙这个概念理解不是那么到位,甚至有些人买回去发现有这样一个配件,根本都不清楚这东西有什么用的。虚拟墙也被成为灯塔,像海上的灯塔一样的意思。虚拟墙显然是虚拟出一个墙壁的信号反馈给扫地机,前方有墙不能前进清..._小米扫地机器人一代虚拟墙

软件工程实践——软件评测作业-程序员宅基地

文章浏览阅读152次。Inscode是一款无需安装的编程、协作和分享社区,用户可以在线进行项目的开发和发布,通过使用平台提供的编程语言模版进行项目的编辑和运行,同时完成的项目还可以发布到社区进行展示。

python存储json时,发生中文乱码_python dataframe to_json中文乱码-程序员宅基地

文章浏览阅读218次。【代码】python存储json时,发生中文乱码。_python dataframe to_json中文乱码

一键修改分辨率bat_设置分辨率的批处理 | 学步园-程序员宅基地

文章浏览阅读7.9k次。if "%computername%"=="name1" SETRES h800 v600 b32 f85if "%computername%"=="name2" SETRES h1024 v768 b32 f85if "%computername%"=="name3" SETRES h1280 v960 b32 f75请善用此程序调整显示器刷新率参数!命令格式SETRES hXXXX vXXXX..._批处理更改屏刷新率

Android中的数据绑定框架DataBinding(对比AngularJS双向数据绑定很好理解)_js databinding-程序员宅基地

文章浏览阅读763次。转自:http://blog.csdn.net/qibin0506/article/details/47393725今天来了解一下Android最新给我们带来的数据绑定框架——Data Binding Library。数据绑定框架给我们带来了更大的方便性,以前我们可能需要在Activity里写很多的findViewById,烦人的代码也增加了我们代码的耦合性,现在我们马上就可以抛弃_js databinding

Windows任务栏工具栏项目对应的注册表项_注册表 implemented categories是什么-程序员宅基地

文章浏览阅读4.7k次,点赞3次,收藏4次。地址:HKEY_CLASSES_ROOT\CLSID{01E04581-4EEE-11d0-BFE9-00AA005B4383}链接:HKEY_CLASSES_ROOT\CLSID{0E5CBF21-D15F-11D0-8301-00AA005B4383}实际起作用的是HKEY_CLASSES_ROOT\CLSID{GUID}\Implemented Categories{00021492..._注册表 implemented categories是什么

随便推点

剑指Offer35:复杂链表的复制(Java)_剑指 offer 35. 复杂链表的复制 java-程序员宅基地

文章浏览阅读191次。题目描述:解题思路:    这道题跟普通的复制链表的思路一样,不同的是他有个random指向。首先创建一个新的链表,通过递归调用的方式,不断把值赋给新的链表。同时我们通过一个Map集合来保存random的指向,根据random,我们可以在Map集合中找到之前random指针指向的node节点,并把它赋值给random指针。代码实现:class Solution { Map<Node,Node> nodeMap = new HashMap<>(); publi_剑指 offer 35. 复杂链表的复制 java

python启动应用程序和终止应用程序_pythen启动程序-程序员宅基地

文章浏览阅读2.5w次,点赞5次,收藏63次。python启动应用程序和终止应用程序1. 目的每天上班,工作需要,电脑上需要每天开机启动一些软件,下班时候,需要关掉一些软件。一个一个打开和关闭貌似是很繁琐的,于是乎,这个脚本产生了。2. 环境系统环境: - win7-32位 - python 2.7.9你还需要安装pywin32。 pip install pywin323. 编写_pythen启动程序

在没有用户ID或者任何唯一性标识的情况下做个唯一标识_不暴露用户id生成标识-程序员宅基地

文章浏览阅读1.4k次。if($_POST){ if(isset($_SESSION['uid'])){ $uid = $_SESSION['uid'] = $_SESSION['uid']+1; --注意复制给自己否则加法不生效将还是加自己,因为$_SESSION['uid']的值未被修改 }else{ $_SESSION['uid'] = 1; }_不暴露用户id生成标识

RabbitMQ SSL设置-程序员宅基地

文章浏览阅读3.1k次。最近在配置RabbitMQ SSL连接支持,阅读了RabbitMQ官方的文档,觉得官方文档不是那么好理解;在Google了一番之后,我发现了这篇文章:http://www.gettingcirrius.com/2013/01/configuring-ssl-for-rabbitmq.html国内的童鞋们也许需要通过代理才能访问,不过没关系,作者还在github上写了一些shell脚..._ssl, [{versions, ['tlsv1.2', 'tlsv1.1']

STM32F103C8 虚拟串口移植实验(1)_#include "usb_lib.h-程序员宅基地

文章浏览阅读867次,点赞3次,收藏5次。1 虚拟串口移植项目新建 USB 文件夹,将USB 驱动拷贝过来从官方案例的 src,inc拷贝以下文件2 配置新建分组添加头文件目录_#include "usb_lib.h

关于传递函数的频率响应和低通滤波器_低通滤波器传递函数-程序员宅基地

文章浏览阅读4.7k次,点赞3次,收藏20次。关于传递函数的频率响应和低通滤波器参考资料:【动态系统的建模与分析】9_一阶系统的频率响应_低通滤波器_Matlab/Simulink分析_哔哩哔哩_bilibili以前关于这部分只是知道了而已,并没有用MATLAB认真试验过。这里借着DR_CAN老师的课程重新复习一下。下面讨论一个简单的一阶线性系统的传递函数:G(s)=as+a(1)G(s)=\frac{a}{s+a} \tag1G(s)=s+aa​(1)分析式(1)的频率响应,将s=jωs=j\omegas=jω代入,可得G(jω)=a_低通滤波器传递函数