Home > OS >  Auto-click Youtube Embed Videos
Auto-click Youtube Embed Videos

Time:04-14

I have a webpage on Blogger where I want to embed Youtube videos and play them automatically.

The autoplay function of Youtube either does not work or the views are not recognized.

So I need a script that I can insert in my website which automatically clicks the Youtube videos as soon as the website has loaded and can play.

CodePudding user response:

To make an embedded video autoplay, add "&autoplay=1" to the video's embed code right after the video ID (the series of letters that follows "embed/"). Embedded videos that are autoplayed don't increment video views.

CodePudding user response:

you can try to use some Headless Script Browser such as Puppeteer:

https://github.com/puppeteer/puppeteer

or PhantomJS:

https://phantomjs.org/

  • Related