bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/screenshare/client/bridge/verto.js
Oleksandr Zhurbenko 251bd22738 PR review fixes
2017-09-06 12:36:52 -07:00

27 lines
610 B
JavaScript

import Users from '/imports/api/2.0/users';
import Auth from '/imports/ui/services/auth';
import BridgeService from './service';
const createVertoUserName = () => {
const userId = Auth.userID;
const uName = Users.findOne({ userId }).user.name;
return `FreeSWITCH User - ${encodeURIComponent(uName)}`;
};
export default class VertoScreenshareBridge {
vertoWatchVideo() {
window.vertoWatchVideo(
'screenshareVideo',
BridgeService.getConferenceBridge(),
createVertoUserName(),
null,
null,
null,
);
}
vertoExitVideo() {
window.vertoExitVideo();
}
}