I would like to control the playback of a YouTube video with JavaScript (jquery).
I tried various things but they all refer to embedded youtube video, is it possible to do it with videos on the official YouTube website? The YouTube webpage is shown in an embedded QWebPage (Qt)
Here is my use case : picture
What I tried so far (not successful), :
QString jsValue = "$('#movie_player').get(0).pauseVideo();";
ui->webView->page()->mainFrame()->evaluateJavaScript(jsValue);