Skip to content

Commit 67103bc

Browse files
committed
Amend comment on discharge function
1 parent 1e7f474 commit 67103bc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/streaming/PreBufferSink.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,8 @@ function PreBufferSink(onAppendedCallback) {
134134
return this;
135135
}
136136

137-
/**
138-
* Return the all chunks in the buffer the lie between times start and end.
139-
* Because a chunk cannot be split, this returns the full chunk if any part of its time lies in the requested range.
140-
* Chunks are removed from the buffer when they are discharged.
141-
* @function PreBufferSink#discharge
142-
* @returns {Array} The set of chunks from the buffer within the time ranges.
143-
*/
137+
//Return an array of all chunks along with init segments in the order to append to the SourceBuffer.
138+
//Chunks are removed from PreBuffer when they are discharged.
144139
function discharge() {
145140
const result = chunks;
146141
let lastInit = null;

0 commit comments

Comments
 (0)