Skip to content

Commit

Permalink
If seek is called with a negative value rewrite to 0 (#4091)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored Nov 27, 2022
1 parent 56b31c0 commit 4fad9f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/streaming/MediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ function MediaPlayer() {
throw Constants.BAD_ARGUMENT_ERROR;
}

if (value < 0) {
value = 0;
}

let s = playbackController.getIsDynamic() ? getDVRSeekOffset(value) : value;

// For VoD limit the seek to the duration of the content
Expand Down

0 comments on commit 4fad9f6

Please sign in to comment.