Haha-Yes/node_modules/prism-media/src/Prism.js
2018-09-06 15:02:53 +02:00

17 lines
325 B
JavaScript

const MediaTranscoder = require('./transcoders/MediaTranscoder');
class Prism {
constructor() {
this.transcoder = new MediaTranscoder(this);
}
createTranscoder(...args) {
return this.transcode(...args);
}
transcode(...args) {
return this.transcoder.transcode(...args);
}
}
module.exports = Prism;