demuxProbe
export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
export declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
Attempt to probe a readable stream to figure out whether it can be demuxed using an Ogg or WebM Opus demuxer.
Name | Type | Optional | Description |
---|---|---|---|
stream | Readable | No | The readable stream to probe |
probeSize | number | Yes | The number of bytes to attempt to read before giving up on the probe |
validator | typeof validateDiscordOpusHead | Yes | The Opus Head validator function |