YouTuve IFrame API trouble with playerVars
问题 I want to start my video at certain times of the day. This is 'script.js': var player; function createPlayer() { player=new YT.Player('main-block',{ height:'400', width:'400', playerVars:{ 'rel':0, 'controls':0, 'showinfo':0, 'disablekb':1, 'modestbranding':1, 'enablejsapi':1 }, videoId:'tgbNymZ7vqY', events:{ 'onReady':onPlayerReady } }); } function onPlayerReady(event) { document.getElementById("timer").style.display='none'; event.target.playVideo(); } function clockPlayer(){ var now = new