From 7687a43ac5001326387c3fd551c97f32246ccccd Mon Sep 17 00:00:00 2001 From: Dan Ziv Date: Sun, 14 Mar 2021 12:23:28 +0200 Subject: [PATCH] feat(FEC-10941): Use In-Stream DASH thumbnails on the timeline (#135) --- src/dash-thumbnail-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dash-thumbnail-controller.js b/src/dash-thumbnail-controller.js index 2cec06dc..5fe8aa9f 100644 --- a/src/dash-thumbnail-controller.js +++ b/src/dash-thumbnail-controller.js @@ -17,8 +17,7 @@ class DashThumbnailController { } selectTrack(track: ImageTrack): void { - this._tracks.forEach((t: ImageTrack) => (t.active = false)); - track.active = true; + this._tracks.forEach((t: ImageTrack) => (t.index === track.index ? (t.active = true) : (t.active = false))); } getTracks(): Array {