Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jforbes committed Dec 12, 2017
1 parent e3ff37a commit aa75649
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,27 +671,17 @@ export default class SegmentLoader extends videojs.EventTarget {
return null;
}

// this.logger_('checkBuffer_',
// 'mediaIndex:', mediaIndex,
// 'hasPlayed:', hasPlayed,
// 'currentTime:', currentTime,
// 'syncPoint:', syncPoint,
// 'fetchAtBuffer:', this.fetchAtBuffer_,
// 'bufferedTime:', bufferedTime);

// When the syncPoint is null, there is no way of determining a good
// conservative segment index to fetch from
// The best thing to do here is to get the kind of sync-point data by
// making a request
if (syncPoint === null) {
mediaIndex = this.getSyncSegmentCandidate_(playlist);
// this.logger_('getSync', 'mediaIndex:', mediaIndex);
return this.generateSegmentInfo_(playlist, mediaIndex, null, true);
}

// Under normal playback conditions fetching is a simple walk forward
if (mediaIndex !== null) {
// this.logger_('walkForward', 'mediaIndex:', mediaIndex + 1);
let segment = playlist.segments[mediaIndex];

if (segment && segment.end) {
Expand Down Expand Up @@ -724,9 +714,6 @@ export default class SegmentLoader extends videojs.EventTarget {
mediaIndex = mediaSourceInfo.mediaIndex;
startOfSegment = mediaSourceInfo.startTime;
}
// this.logger_('getMediaIndexForTime',
// 'mediaIndex:', mediaIndex,
// 'startOfSegment:', startOfSegment);

return this.generateSegmentInfo_(playlist, mediaIndex, startOfSegment, false);
}
Expand Down

0 comments on commit aa75649

Please sign in to comment.