Skip to content

Commit

Permalink
remove diagnostic log
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzianis Dashkevich committed Nov 9, 2023
1 parent 58d4b00 commit 797f5ac
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ export default class SegmentLoader extends videojs.EventTarget {
*
* @return {Object} a request object that describes the segment/part to load
*/
chooseNextRequest_(fromSyncRequest = false) {
chooseNextRequest_() {
const buffered = this.buffered_();
const bufferedEnd = lastBufferedEnd(buffered) || 0;
const bufferedTime = timeAheadOf(buffered, this.currentTime_());
Expand Down Expand Up @@ -1475,10 +1475,6 @@ export default class SegmentLoader extends videojs.EventTarget {
next.mediaIndex = segmentIndex;
next.startOfSegment = startTime;
next.partIndex = partIndex;

if (bufferedEnd > 0 && startTime < bufferedEnd) {
diagnosticLog(`WARNING: Selected new segment, but start time is less than buffered end! Start Time: ${startTime}. buffered End: ${bufferedEnd}. CurrentTime: ${this.currentTime_()}. Segment Duration: ${segments[next.mediaIndex].duration}. From Sync Request: ${fromSyncRequest}`);
}
}

const nextSegment = segments[next.mediaIndex];
Expand Down Expand Up @@ -2145,7 +2141,7 @@ export default class SegmentLoader extends videojs.EventTarget {
shouldSaveTimelineMapping: this.loaderType_ === 'main'
});

const next = this.chooseNextRequest_(true);
const next = this.chooseNextRequest_();

// If the sync request isn't the segment that would be requested next
// after taking into account its timing info, do not append it.
Expand Down

0 comments on commit 797f5ac

Please sign in to comment.