bigbluebutton-Github/bigbluebutton-html5/imports/api/audio/client/bridge/base.js
2018-06-27 10:56:03 -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_NEGOCIATION_FAILED: 'ICE_NEGOCIATION_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');
}
}