bigbluebutton-Github/bigbluebutton-html5/imports/api/audio/client/bridge/base.js
Gabriel Carvalho de Campes 81f35bac4f Fix concerns from review
2017-10-26 15:14:56 -02:00

36 lines
793 B
JavaScript

export default class BaseAudioBridge {
constructor(userData) {
this.userData = userData;
this.baseErrorCodes = {
INVALID_TARGET: 'INVALID_TARGET',
CONNECTION_ERROR: 'CONNECTION_ERROR',
REQUEST_TIMEOUT: 'REQUEST_TIMEOUT',
GENERIC_ERROR: 'GENERIC_ERROR',
MEDIA_ERROR: 'MEDIA_ERROR',
};
this.baseCallStates = {
started: 'started',
ended: 'ended',
failed: 'failed',
};
}
exitAudio() {
console.error('The Bridge must implement exitAudio');
}
joinAudio() {
console.error('The Bridge must implement joinAudio');
}
changeInputDevice() {
console.error('The Bridge must implement changeInputDevice');
}
changeOutputDevice() {
console.error('The Bridge must implement changeOutputDevice');
}
}