Class: WebmDemuxer

opus.WebmDemuxer()

Demuxes a Webm stream (containing Opus audio) to output an Opus stream.

Constructor

new WebmDemuxer()

Source:
Example
const fs = require('fs');
const file = fs.createReadStream('./audio.webm');
const demuxer = new prism.opus.WebmDemuxer();
const opus = file.pipe(demuxer);
// opus is now a ReadableStream in object mode outputting Opus packets

Extends