bigbluebutton-Github/bigbluebutton-html5/imports/api/audio/client/bridge/base.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

2017-07-24 22:15:46 +08:00
export default class BaseAudioBridge {
2017-10-12 05:04:10 +08:00
constructor(userData) {
this.userData = userData;
this.baseErrorCodes = {
INVALID_TARGET: 'INVALID_TARGET',
CONNECTION_ERROR: 'CONNECTION_ERROR',
REQUEST_TIMEOUT: 'REQUEST_TIMEOUT',
GENERIC_ERROR: 'GENERIC_ERROR',
2017-10-27 01:14:56 +08:00
MEDIA_ERROR: 'MEDIA_ERROR',
2018-06-27 21:56:03 +08:00
WEBRTC_NOT_SUPPORTED: 'WEBRTC_NOT_SUPPORTED',
2018-06-29 02:14:35 +08:00
ICE_NEGOTIATION_FAILED: 'ICE_NEGOTIATION_FAILED',
2017-10-12 05:04:10 +08:00
};
this.baseCallStates = {
started: 'started',
ended: 'ended',
failed: 'failed',
reconnecting: 'reconnecting',
autoplayBlocked: 'autoplayBlocked',
2017-10-12 05:04:10 +08:00
};
2017-07-24 22:15:46 +08:00
}
getPeerConnection() {
console.error('The Bridge must implement getPeerConnection');
}
2017-07-24 22:15:46 +08:00
exitAudio() {
2017-10-12 05:04:10 +08:00
console.error('The Bridge must implement exitAudio');
2017-07-24 22:15:46 +08:00
}
2017-09-29 21:38:10 +08:00
joinAudio() {
2017-10-12 05:04:10 +08:00
console.error('The Bridge must implement joinAudio');
2017-07-24 22:15:46 +08:00
}
changeInputDevice() {
console.error('The Bridge must implement changeInputDevice');
}
changeOutputDevice() {
console.error('The Bridge must implement changeOutputDevice');
}
2017-07-24 22:15:46 +08:00
}