PDA

View Full Version : QWebView won't play YouTube videos?



Zingam
10th July 2014, 13:02
I tried both Qt 5.3.1 mingw and PyQt 5.3.1 and couldn't get any videos to play in a QWebView browser? Any ideas why won't QWebView play Youtube html5 videos?

All examples show that these lines should be sufficient:



QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);

anda_skoa
10th July 2014, 13:26
I don't think you need plugins for HTML5's video tag, that would be for using Flash.

Have you tried with a local video?

Cheers,
_