Skip to content

Commit

Permalink
Fix a bug which causes wrong thumbnail url calculation for SegmentTim…
Browse files Browse the repository at this point in the history
…eline with $time (#3484)
  • Loading branch information
dsilhavy authored Dec 17, 2020
1 parent 9710769 commit 5204244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/thumbnail/ThumbnailController.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function ThumbnailController(config) {
function buildUrlFromTemplate(track, seq) {
const seqIdx = seq + track.startNumber;
let url = replaceTokenForTemplate(track.templateUrl, 'Number', seqIdx);
url = replaceTokenForTemplate(url, 'Time', (seqIdx - 1) * track.segmentDuration);
url = replaceTokenForTemplate(url, 'Time', (seqIdx - 1) * track.segmentDuration * track.timescale);
url = replaceTokenForTemplate(url, 'Bandwidth', track.bandwidth);
return unescapeDollarsInTemplate(url);
}
Expand Down

0 comments on commit 5204244

Please sign in to comment.