Skip to content

Commit

Permalink
Check for stableBufferTime larger than 0 in MediaPlayerModel.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Oct 9, 2021
1 parent a2b9623 commit b7d585c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/models/MediaPlayerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function MediaPlayerModel() {
}

const stableBufferTime = settings.get().streaming.buffer.stableBufferTime;
return stableBufferTime > -1 ? stableBufferTime : settings.get().streaming.buffer.fastSwitchEnabled ? DEFAULT_MIN_BUFFER_TIME_FAST_SWITCH : DEFAULT_MIN_BUFFER_TIME;
return stableBufferTime > 0 ? stableBufferTime : settings.get().streaming.buffer.fastSwitchEnabled ? DEFAULT_MIN_BUFFER_TIME_FAST_SWITCH : DEFAULT_MIN_BUFFER_TIME;
}

function getRetryAttemptsForType(type) {
Expand Down

0 comments on commit b7d585c

Please sign in to comment.