17 lines
325 B
JavaScript
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;
|