I can control fine this video (play, pause) at this URL: https://www.youtube.com/watch?v=5kcdRBHM7kM
I use this code with Qt 5.7.1 using QWebEngine
QString jsToDo = "document.getElementById('movie_player').playVideo();";
webEngineView->page()->runJavaScript(jsToDo);
I would like to get a fullscreen browser so when I try using the same video with this URL: https://www.youtube.com/embed/5kcdRBHM7kM?autohide=1&autoplay=1&modestbranding=1&playerapiid=ytplayer&enablejsapi=1&hl=en
The same javascript code up here is not working to control playback, I tried multiple ID without success. Is there a way to control embed youtube video that I have no control over the element ID?
movie_playerelement nor anyplayVideomethod. If you want your code to work on the second, you'll need to figure out how this code works. - Julie Pelletier