diff --git a/src/source/blockedsource.js b/src/source/blockedsource.js index 5630efb2..797d1ecb 100644 --- a/src/source/blockedsource.js +++ b/src/source/blockedsource.js @@ -93,7 +93,7 @@ export class BlockedSource extends BaseSource { const firstBlockOffset = Math.floor(offset / this.blockSize) * this.blockSize; - for (let current = firstBlockOffset; current < top; current += this.blockSize) { + for (let current = firstBlockOffset; current <= top; current += this.blockSize) { const blockId = Math.floor(current / this.blockSize); if (!this.blockCache.has(blockId) && !this.blockRequests.has(blockId)) { this.blockIdsToFetch.add(blockId);