e96fc385f1
The action bar stop button is temporary
50 lines
964 B
JavaScript
Executable File
50 lines
964 B
JavaScript
Executable File
import Users from '/imports/api/2.0/users';
|
|
import Auth from '/imports/ui/services/auth';
|
|
import BridgeService from './service';
|
|
|
|
const getUserId = () => {
|
|
const userID = Auth.userID;
|
|
return userID;
|
|
}
|
|
|
|
const getMeetingId = () => {
|
|
const meetingID = Auth.meetingID;
|
|
return meetingID;
|
|
}
|
|
|
|
const getUsername = () => {
|
|
return Users.findOne({ userId: getUserId() }).name;
|
|
}
|
|
|
|
export default class KurentoScreenshareBridge {
|
|
kurentoWatchVideo() {
|
|
window.kurentoWatchVideo(
|
|
'screenshareVideo',
|
|
BridgeService.getConferenceBridge(),
|
|
getUsername(),
|
|
getMeetingId(),
|
|
null,
|
|
null,
|
|
);
|
|
}
|
|
|
|
kurentoExitVideo() {
|
|
window.kurentoExitVideo();
|
|
}
|
|
|
|
kurentoShareScreen() {
|
|
window.kurentoShareScreen(
|
|
'screenshareVideo',
|
|
BridgeService.getConferenceBridge(),
|
|
getUsername(),
|
|
getMeetingId(),
|
|
null,
|
|
null,
|
|
);
|
|
}
|
|
|
|
kurentoExitScreenShare() {
|
|
window.kurentoExitScreenShare();
|
|
}
|
|
}
|