From a98b4421bcf5898196d8c36504568f67a1151adf Mon Sep 17 00:00:00 2001 From: chee Date: Tue, 8 Dec 2020 10:31:44 +0000 Subject: [PATCH] Track `waiting` event closes #124 --- src/js/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/video.js b/src/js/video.js index 1418345..8a21a0e 100644 --- a/src/js/video.js +++ b/src/js/video.js @@ -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));