Skip to content

Commit

Permalink
Do not add a segment duration offset to the current buffer level for …
Browse files Browse the repository at this point in the history
…audio when the audio buffer target depends on the video buffer target (#4673)
  • Loading branch information
dsilhavy authored Jan 23, 2025
1 parent b947f5e commit 8f4ccf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/ScheduleController.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function ScheduleController(config) {
const bufferTarget = getBufferTarget();

// If the buffer target is smaller than the segment duration we do not take it into account. For low latency playback do not delay the buffering.
if (bufferTarget <= segmentDurationToAddToBufferLevel || playbackController.getLowLatencyModeEnabled()) {
if (bufferTarget <= segmentDurationToAddToBufferLevel || playbackController.getLowLatencyModeEnabled() || (type === Constants.AUDIO && hasVideoTrack)) {
segmentDurationToAddToBufferLevel = 0;
}

Expand Down

0 comments on commit 8f4ccf6

Please sign in to comment.