Skip to content

Commit

Permalink
Revert "buffer-helper: correctly report bufferInfo when current time …
Browse files Browse the repository at this point in the history
…is located before buffered ranges, but within maxHoleDuration range"

This reverts commit ffb6ec6.
related to #420
  • Loading branch information
mangui committed May 9, 2016
1 parent 60be8f6 commit 877f1c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/helper/buffer-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ class BufferHelper {
buffered2.push(buffered[i]);
}
}

// in case current position is located before buffered time ranges, report area as not buffered
if (buffered2.length && pos < buffered2[0].start) {
return {len: 0, start: pos, end: pos, nextStart : buffered2[0].start};
}

for (i = 0, bufferLen = 0, bufferStart = bufferEnd = pos; i < buffered2.length; i++) {
var start = buffered2[i].start,
end = buffered2[i].end;
Expand Down

0 comments on commit 877f1c6

Please sign in to comment.