Enable flash plugins

parent a285bf2c
......@@ -213,18 +213,19 @@ void SkyliveProtocol::processPackets()
{
SKMessage mmsg("youtubevideo");
#if defined(Q_OS_WIN)
//#if defined(Q_OS_WIN)
QString yt("http://youtube.googleapis.com/v/");
yt.append(paramlist[0]);
yt.append("?autoplay=1&start=");
yt.append(paramlist[1]);
#else
//#else
//SKMessage mmsg("openurl");
/*
QString yt("http://www.youtube.com/embed/");
yt.append(paramlist[0]);
yt.append("?html5=1&autoplay=1&start=");
yt.append(paramlist[1]);
#endif
#endif */
mmsg.parameters.insert("url", yt);
mmsg.parameters.insert("volume", paramlist[2]);
sendMessage(mmsg);
......
......@@ -82,6 +82,8 @@ WebWin::WebWin()
baseUrl = QUrl::fromLocalFile(QDir::current().absoluteFilePath("gui/dummy.html"));
settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
settings()->setAttribute(QWebSettings::JavascriptCanCloseWindows, true);
settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true);
settings()->setAttribute(QWebSettings::PluginsEnabled, true);
msgsender = SENDER;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment