bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/audio/client/bridge/verto.js
2017-07-24 11:15:46 -03:00

39 lines
674 B
JavaScript

import BaseAudioBridge from './base';
export default class VertoBridge extends BaseAudioBridge {
constructor(userData) {
super();
const {
userId,
username,
voiceBridge,
} = userData;
this.voiceBridge = voiceBridge;
this.vertoUsername = `${userId}-bbbID-${username}`;
}
exitAudio(listenOnly) {
window.vertoExitAudio();
}
joinListenOnly() {
window.vertoJoinListenOnly(
'remote-media',
this.voiceBridge,
this.vertoUsername,
null,
);
}
joinMicrophone() {
window.vertoJoinMicrophone(
'remote-media',
this.voiceBridge,
this.vertoUsername,
null,
);
}
}