Qwebkit和flash播放器,为什么在windows下不工作
我使用 Qwebkit,每次加载 youtube 时,它都会要求我下载最新的
flash播放器插件,即使如此我已经安装了该插件,我可以看到youtube视频
在 firefox 和 explorer 中运行得很好
Qwebkit 和 Flash plagin 有什么关系?
im using Qwebkit and every time im loading youtube , its asking me to download the latest
flash player plugin , even so i already installed the plugin and i can see youtube videos
in firefox and explorer very well
what is the deal with Qwebkit and Flash plagin ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
有一种方法可以做到这一点。 Windows 中的 Qt 默认情况下不使用 flash 插件,即使您已经为 firefox 安装了该插件。解决方案是手动将插件 dll 复制到编译的应用程序目录中(我的意思是与安装可执行文件的目录相同)。
我一年多前就这样做了,所以我不完全确定它是否必须直接位于目录中或位于名为“插件”的文件夹下。两者都尝试一下,其中之一应该可以工作。
flash插件dll应该在你的firefox目录中,如果没有的话在google中搜索一下,有几个页面可以下载它。
您还需要激活 QWebView 的插件支持。我认为这是在 pro 文件中完成的,但我一直在做一些研究,可能是通过更改网络设置完成的:
There is a way of doing it. Qt in windows doesn't use by default the flash plugin even if you have installed it for firefox. The solution is to manually copy the plugin dll into your compiled application directory (I mean in the same directory than the executable is installed).
I did it more than a year ago so I'm not totally sure if it has to be directly in the directory or under a folder called plugins. Try both and one of them should work.
The flash plugin dll should be in your firefox directory, if not do a search in google and there are several pages in which you can download it.
You also need to activate plug-ins support for QWebView. I think that was done in the pro file, but I have been doing some research and it maybe done changing the web settings:
转至 adobe.com 并下载适用于其他浏览器(Firefox、Safari、Opera)的插件,然后重新安装...
Go to adobe.com and download the plugin for Other Browsers (Firefox, Safari, Opera), and re-install...
只是为了报告我在 QWebKit 中启用 Flash 的经验,请执行以下操作:
Just to report on my experience of enabling flash in QWebKit, do the following:
你的问题很容易解决。只需将以下行添加到您的代码中:
Your problem is very simple to solve. Just add the following lines to your code: