Skip to content

Commit

Permalink
fix: add missed highWaterMark option for PassThrough (#99)
Browse files Browse the repository at this point in the history
fixes #96
  • Loading branch information
cjh980402 authored Jan 9, 2022
1 parent d50f9ab commit 589b08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const supportedParsers = {
};

let m3u8stream = ((playlistURL: string, options: m3u8stream.Options = {}): m3u8stream.Stream => {
const stream = new PassThrough() as m3u8stream.Stream;
const stream = new PassThrough({ highWaterMark: options.highWaterMark }) as m3u8stream.Stream;
const chunkReadahead = options.chunkReadahead || 3;
// 20 seconds.
const liveBuffer = options.liveBuffer || 20000;
Expand Down

0 comments on commit 589b08b

Please sign in to comment.