Skip to content

Commit

Permalink
Update liveCatchup.maxDrift logic to allow zero value. This will make…
Browse files Browse the repository at this point in the history
… it possible to dissable catchup with seeking as described in the documentation. (Dash-Industry-Forum#4528)
  • Loading branch information
BramB-1952444 authored Jul 24, 2024
1 parent d0f9266 commit f33847c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/streaming/models/MediaPlayerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ function MediaPlayerModel() {
* @return {number}
*/
function getCatchupMaxDrift() {
if (!isNaN(settings.get().streaming.liveCatchup.maxDrift) && settings.get().streaming.liveCatchup.maxDrift > 0) {
if (!isNaN(settings.get().streaming.liveCatchup.maxDrift) && settings.get().streaming.liveCatchup.maxDrift >= 0) {
return settings.get().streaming.liveCatchup.maxDrift;
}

const serviceDescriptionSettings = serviceDescriptionController.getServiceDescriptionSettings();
if (serviceDescriptionSettings && serviceDescriptionSettings.liveCatchup && !isNaN(serviceDescriptionSettings.liveCatchup.maxDrift) && serviceDescriptionSettings.liveCatchup.maxDrift > 0) {
if (serviceDescriptionSettings && serviceDescriptionSettings.liveCatchup && !isNaN(serviceDescriptionSettings.liveCatchup.maxDrift) && serviceDescriptionSettings.liveCatchup.maxDrift >= 0) {
return serviceDescriptionSettings.liveCatchup.maxDrift;
}

Expand Down

0 comments on commit f33847c

Please sign in to comment.