Change from setUrl to load when change youtube uri

parent b1a7bfdd
......@@ -157,7 +157,7 @@ void MainWin::handle_youtubevideo(SKMessage &msg)
}
else
{
yt->setUrl(QUrl(msg.parameters["url"]));
yt->load(QUrl(msg.parameters["url"]));
}
}
......@@ -166,6 +166,7 @@ void MainWin::handle_youtubevideo(SKMessage &msg)
void MainWin::ytclosesignal()
{
std::cout << "Youtube Window Closed " << std::endl;
yt_is_open=false;
}
......
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