')
    event.target.playVideo();
    requestAnimationFrame(checkTime)
  }

  function checkTime() {
    if(turntDown) {
      return false;
    }
    requestAnimationFrame(checkTime);
    if(player.getCurrentTime() > turndownAt) {
      turntDown = true;
      removeCurStyles();
      addCurStyles()
    }

  }
  function onPlayerStateChange(event) {
    console.log(event)
    if(event.data === 1) {
      //started
      addCurStyles()

    } else if(event.data === 2) {
      //paused
      removeCurStyles()