Skip to content

Commit

Permalink
Updated setting of Livedelay to use new delay subsection (#3661)
Browse files Browse the repository at this point in the history
  • Loading branch information
piersoh authored Jun 10, 2021
1 parent 2d403b3 commit cc348de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/streaming/controllers/PlaybackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,13 @@ function PlaybackController() {
const minDelay = 1.2 * e.request.duration;
if (minDelay > mediaPlayerModel.getLiveDelay()) {
logger.warn('Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:', minDelay.toFixed(2));
const s = { streaming: { liveDelay: minDelay } };
settings.update(s);
settings.update({
streaming: {
delay: {
liveDelay: minDelay,
}
}
});
}
}
}
Expand Down

0 comments on commit cc348de

Please sign in to comment.