iMath
iMath

Reputation: 2478

playing video with Qt’s QtWebKit module

if you're using Google Chrome ,When you open the following link https://d2pq0u4uni88oo.cloudfront.net/projects/79786/video-87361-h264_high.mp4 you'll see a video player ,then if you "inspect element" and you will See the html5 video tag there

I wonder if we could accomplish the same functionality with Qt’s QtWebKit module can anyone give a code sample with the above link ?

Upvotes: 0

Views: 1018

Answers (1)

mata
mata

Reputation: 69042

Try enabling plugins for QtWebKit, then it should work (just tried it):

from PyQt4.QtWebKit import QWebSettings
QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled, True)

Upvotes: 1

Related Questions