bigbluebutton-Github/bigbluebutton-html5/imports/api/deskshare/client/bridge/verto.js

29 lines
670 B
JavaScript
Raw Normal View History

2017-04-19 22:59:57 +08:00
import Users from '/imports/api/users';
import Auth from '/imports/ui/services/auth';
import { getVoiceBridge } from '/imports/ui/components/audio/service';
// TODO pass info in constructor instead of importing ^^
const createVertoUserName = () => {
const userId = Auth.userID;
const uName = Users.findOne({ userId }).user.name;
return 'FreeSWITCH User - ' + encodeURIComponent(uName);
};
export default class VertoDeskshareBridge {
constructor() {
}
vertoWatchVideo() {
window.vertoWatchVideo(
'deskshareVideo',
getVoiceBridge(),
createVertoUserName(),
null,
null,
null,
);
}
// TODO add vertoExitVideo
}