Youtube-Auto-Play-Pause-Video is a nodejs package to play or pause video on youtube automatically. It currently runs only on windows.
Installation
npm install youtube-auto-play-pause-video
Example
In this example we first import package, then we opened video link and paused video.
var youtube=require("youtube-auto-play-pause-video");
function play(){
youtube.play_pause_video()
}
youtube.open("video url",play)
DataKund
datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
Import
var youtube=require("youtube-auto-play-pause-video");
Play/Pause Video
youtube.play_pause_video()