 function() {
    console.log("Play ended")
    if (playOverlay) {
      playOverlay.style.display = "block"
    }
  })

  this.player.addEventListener("ended", function(e) {
    removeClass(playerDiv, "user-activity");
  });

  var showContextMenu = function(e) {
    if (!self.isMobile) {
      self.player.addEventListener("mousedown", closeContextMenu);
      document.addEventListener("mousedown", closeContextMenu);

      if (e.offsetX + 200 > self.player.offsetWidth) {
        menu.style.left = e.offset