bigbluebutton-Github/bigbluebutton-html5/imports/api/audio/client/bridge/base.js
Tainan Felipe c21749992d Tiny fixes
2018-06-28 15:16:28 -03:00

38 lines
901 B
JavaScript
Executable File

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',
WEBRTC_NOT_SUPPORTED: 'WEBRTC_NOT_SUPPORTED',
ICE_NEGOTIATION_FAILED: 'ICE_NEGOTIATION_FAILED',
};
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');
}
}