const player = new Plyr ( ' #player ' , {
autoplay: true,
clickToPlay: false,
disableContextMenu: true,
controls: [],
displayDuration: true,
invertTime: true,
});
const targetTime = new Date('2020-04-12 19:00')
const timer = setInterval(function(){
const now = new Date()
if (now > targetTime) {
player.play()
clearInterval(timer)
}
}, 1000)