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 {