From 912c14c101b87866b17f6afd2f58ff97b6b2d5d2 Mon Sep 17 00:00:00 2001 From: Piers O'Hanlon <42040737+piersoh@users.noreply.github.com> Date: Fri, 17 May 2024 17:17:03 +0100 Subject: [PATCH] Bypass the minPlaybackRateChange check when newRate=1.0 (#4481) - This avoids the situation where the playbackrate can get stuck at non 1.0 rate, due to the rate change being less than minPlaybackRateChange --- src/streaming/controllers/CatchupController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming/controllers/CatchupController.js b/src/streaming/controllers/CatchupController.js index e4477760ab..7d5f806eeb 100644 --- a/src/streaming/controllers/CatchupController.js +++ b/src/streaming/controllers/CatchupController.js @@ -234,7 +234,7 @@ function CatchupController() { const minPlaybackRateChange = isSafari ? 0.25 : 0.02 / (0.5 / liveCatchupPlaybackRates.max); // Obtain newRate and apply to video model. Don't change playbackrate for small variations (don't overload element with playbackrate changes) - if (newRate && Math.abs(currentPlaybackRate - newRate) >= minPlaybackRateChange) { // non-null + if (newRate && Math.abs(currentPlaybackRate - newRate) >= minPlaybackRateChange || newRate == 1.0) { // non-null logger.debug(`[CatchupController]: Setting playback rate to ${newRate}`); videoModel.setPlaybackRate(newRate); }