From 520424484dff3c945581062baf37eced8fca06b5 Mon Sep 17 00:00:00 2001 From: dsilhavy Date: Thu, 17 Dec 2020 09:45:37 +0100 Subject: [PATCH] Fix a bug which causes wrong thumbnail url calculation for SegmentTimeline with $time (#3484) --- src/streaming/thumbnail/ThumbnailController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming/thumbnail/ThumbnailController.js b/src/streaming/thumbnail/ThumbnailController.js index 9ae602c8d2..86321676f2 100644 --- a/src/streaming/thumbnail/ThumbnailController.js +++ b/src/streaming/thumbnail/ThumbnailController.js @@ -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); }