From 01d5749fdaf904201a55fe3f03670ac44d45fde9 Mon Sep 17 00:00:00 2001 From: dsilhavy Date: Wed, 3 Jun 2020 17:06:13 +0200 Subject: [PATCH] Fix a bug which causes no calculation of live seek range in the MSE for video only streams --- 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); } }