I have the following iframe example:
<iframe class="iframe-test" id="video" width="560" height="315" src="https://www.youtube.com/embed/iRYDYrj3Bfw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
I have tried the following but nothing is happening:
$('#video').click();
Does it have something to do with cross-domain iframes?