[SOLVED] Embedding flash player into a QtWebKit application.
Page |
1 |
Hello,
I’m developing a QtWebKit based application and I need it to support flash player
out of the box.
I already have flash content working by installing the Mozilla flash player plugin and
enabling plugins in the application’s web settings. However, I would like to know if
there’s a way for the application to support flash content from start, without
having to install a separate plugin. The same Google Chrome works.
Thank you
Sergio
17 replies
From what I know you need to put plugin in any path specified in http://doc.qt.nokia.com/latest/qtwebkit.html (ctrl+f “Netscape Plugin Support”) and enable plugins in settings.
You may also try to modify QWebPluginFactory
Hi, that you for replying.
Yes, the Webkit looks for the standard plugin location.
I was wondering whether there is a way to specify the
directory which it will look for the plugin. That way I could
just deploy the app with a copy of the NPSWF32.dll file and
the Webkit will run Flash content out of the box. It won’t
matter if the ‘user’ has the plugin installed.
According to the sources in 4.81 the paths set in the environment variable QTWEBKIT_PLUGIN_PATH are also search for plugins. You might give that a try. Be aware to set the environment before instantiating any webkit classes.
1 src/3rdparty/webkit/Source/WebCore/plugins/PluginDatabase.cpp [qt.gitorious.org]
Hi,you can not distribute Adobe plugins binaries along with your application.
In the installation pacakge of your project ask user to download the latest plugin from the adobe website.
It is against the copyright to distribute adobe dll’s with third party app.
Thank you for your reply.
I still would like to know how to do the procedure indicated by Volker.
According to the sources in 4.81 the paths set in the environment variable QTWEBKIT_PLUGIN_PATH are also search for plugins. You might give that a try. Be aware to set the environment before instantiating any webkit classes.1 src/3rdparty/webkit/Source/WebCore/plugins/PluginDatabase.cpp [qt.gitorious.org]
You must log in to post a reply. Not a member yet? Register here!


