Does YouTube API support for the parameter close the browser after particular time?
this need to achieve for promoting the promo video using links to share on a different location. and as soon as the video is ended. close the browser.
Does YouTube API support for the parameter close the browser after particular time?
this need to achieve for promoting the promo video using links to share on a different location. and as soon as the video is ended. close the browser.
You can use Youtube API to monitor is the video is finished then use javascript codes to close the browser.
// when video ends
function onPlayerStateChange(event) {
if(event.data === 0) {
alert('done');
//do something here
}
References:
Hope this helps.