UNPKG

455 BTypeScriptView Raw
1/// <reference types="node" />
2import { Writable } from 'stream';
3import { Parser } from './parser';
4/**
5 * A very simple m3u8 playlist file parser that detects tags and segments.
6 */
7export default class m3u8Parser extends Writable implements Parser {
8 private _lastLine;
9 private _seq;
10 private _nextItemDuration;
11 constructor();
12 _parseLine(line: string): void;
13 _write(chunk: Buffer, encoding: string, callback: () => void): void;
14}