posted on: 2009-06-21 08:35:40
Step one get PyQt 4.5 and Qt 4.5 Step two Enable plugins

>Here is how you make your previous working QWebView load your mozilla plugins.

websettings = self.settings()
websettings.setAttribute(QtWebKit.QWebSettings.PluginsEnabled,True)

Okay if you don't have mozilla download the latest flash plugin for linux/mozilla, untar it and put the libflashplayer.so file in directory mentioned here, it should get loaded.

In general firefox was running about 18% cpu usage to use pandora, using a QWebView it takes about 10% to play music from pandora.

Comments

Matt
2009-03-12 15:49:56
Make sure you are using PyQt 4.5+ with an x11 setup and you have Qt4.5 installed too. mbs
regomodo
2009-06-21 06:20:31
Awesome. This is something I haven't been able to figure out for a while. I had to do it a little differently. Lines I added: from PyQt4.QtWebKit import QWebSettings self.settings = self.webView.settings() # self.webView is the QWebView self.settings.setAttribute(QWebSettings.PluginsEnabled,True) Cheers!
Name: