Start an youtube iframe past a certain time?

0

I would like my player to be a kind of autoplay in the video.

I know I could do this.

setTimeout(function(){
    $("iframe").attr("src", src+"&autoplay=1");
});

But with the code above, it would interfere with other parts of my code that link to player that checks when it ends with events of the Youtube API.

Is there a way to start it without changing the src past x seconds?

    
asked by anonymous 06.03.2018 / 18:57

0 answers