)
  }
}

VideoPlayer.prototype.recordStat = function(name, data) {
  data = data || {};
  data.type = name;
  data.shortcode = this.video.shortcode;
  data.timestamp = Math.floor(Date.now() / 1000);
  data.id = this.session_id; //cookie loaded in common
  data.referrer = encodeURIComponent(document.referrer)
  data.embedid = this.id
  for (var a in this.client_data ) { data[a] = this.client_data[a]; }
  data.ad = data.ad ? data.ad.tag : null
  window.STM_TRANSPORT.push(data)
}

VideoPlayer.prototype.onFullS