bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-dock/service.js
2017-09-20 00:12:10 -03:00

24 lines
552 B
JavaScript

import { makeCall } from '/imports/ui/services/api';
const joinVideo = () => {
var joinVideoEvent = new Event('joinVideo');
document.dispatchEvent(joinVideoEvent);
}
const exitVideo = () => {
var exitVideoEvent = new Event('exitVideo');
document.dispatchEvent(exitVideoEvent);
}
const sendUserShareWebcam = (stream) => {
makeCall('userShareWebcam', stream);
};
const sendUserUnshareWebcam = (stream) => {
makeCall('userUnshareWebcam', stream);
};
export default {
sendUserShareWebcam, sendUserUnshareWebcam, joinVideo, exitVideo,
};