Skip to content

Commit

Permalink
Fix seek with null value in PlaybackController.js (Dash-Industry-Foru…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored and vodlogic committed Dec 16, 2021
1 parent 8f50f8f commit b1744e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/streaming/controllers/PlaybackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ function PlaybackController() {
const DVRMetrics = dashMetrics.getCurrentDVRInfo(type);
const DVRWindow = DVRMetrics ? DVRMetrics.range : null;

seek(DVRWindow.end - mediaPlayerModel.getLiveDelay(), true, false);
if (DVRWindow && !isNaN(DVRWindow.end)) {
seek(DVRWindow.end - mediaPlayerModel.getLiveDelay(), true, false);
}
}

function getTime() {
Expand Down

0 comments on commit b1744e2

Please sign in to comment.