Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
Track waiting event
Browse files Browse the repository at this point in the history
closes #124
  • Loading branch information
chee committed Dec 8, 2020
1 parent 736ae38 commit a98b442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Video {
this.containerEl.appendChild(this.liveRegionEl);
this.containerEl.appendChild(this.videoEl);

addEvents(this, ['playing', 'pause', 'ended', 'progress', 'seeked', 'error', 'stalled']);
addEvents(this, ['playing', 'pause', 'ended', 'progress', 'seeked', 'error', 'stalled', 'waiting']);
this.videoEl.addEventListener('playing', this.pauseOtherVideos.bind(this));
this.videoEl.addEventListener('playing', this.markPlayStart.bind(this));
this.videoEl.addEventListener('pause', this.updateAmountWatched.bind(this));
Expand Down

0 comments on commit a98b442

Please sign in to comment.