Skip to content

Commit

Permalink
feat(FEC-10941): Use In-Stream DASH thumbnails on the timeline (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Mar 14, 2021
1 parent 725aa28 commit 7687a43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dash-thumbnail-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<ImageTrack> {
Expand Down

0 comments on commit 7687a43

Please sign in to comment.