From 54244b6c78ef40e465d601557639abd0b16b17a2 Mon Sep 17 00:00:00 2001 From: dsilhavy Date: Thu, 4 Jun 2020 08:50:07 +0200 Subject: [PATCH] Fix a bug which causes no calculation of live seek range in the MSE for video only streams (#3277) --- src/streaming/controllers/StreamController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/streaming/controllers/StreamController.js b/src/streaming/controllers/StreamController.js index 00b5e7d991..842c2fc489 100644 --- a/src/streaming/controllers/StreamController.js +++ b/src/streaming/controllers/StreamController.js @@ -971,7 +971,8 @@ function StreamController() { if (e.metric === MetricsConstants.DVR_INFO) { //Match media type? How can DVR window be different for media types? //Should we normalize and union the two? - if (e.mediaType === Constants.AUDIO) { + const targetMediaType = hasAudioTrack() ? Constants.AUDIO : Constants.VIDEO; + if (e.mediaType === targetMediaType) { mediaSourceController.setSeekable(mediaSource, e.value.range.start, e.value.range.end); } }