We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
highWaterMark
1 parent d50f9ab commit 589b08bCopy full SHA for 589b08b
1 file changed
src/index.ts
@@ -46,7 +46,7 @@ const supportedParsers = {
46
};
47
48
let m3u8stream = ((playlistURL: string, options: m3u8stream.Options = {}): m3u8stream.Stream => {
49
- const stream = new PassThrough() as m3u8stream.Stream;
+ const stream = new PassThrough({ highWaterMark: options.highWaterMark }) as m3u8stream.Stream;
50
const chunkReadahead = options.chunkReadahead || 3;
51
// 20 seconds.
52
const liveBuffer = options.liveBuffer || 20000;
0 commit comments