Haha-Yes/node_modules/prism-media/src/Prism.js

18 lines
325 B
JavaScript
Raw Normal View History

2018-09-06 15:02:53 +02:00
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;