UNPKG

m3u8stream

Version:

Reads segments from a m3u8 or dash playlist into a consumable stream.

15 lines (14 loc) • 543 B
import crypto from 'crypto'; import miniget from 'miniget'; import { KeyInfo } from './parser'; export default class KeyManager { private _keyCache; private _inflightKeys; private _requests; private _requestOptions?; private _forwardEvents?; constructor(requestOptions?: miniget.Options, forwardEvents?: (req: miniget.Stream) => void); getKey(keyUrl: string): Promise<Buffer>; getDecipher(key: KeyInfo | null | undefined, playlistURL: string, seq: number): Promise<crypto.Decipher | null>; clear(): void; }