bigbluebutton-Github/bigbluebutton-html5/imports/api/video-streams/server/handlers/userSharedHtml5Webcam.js
2019-12-10 08:21:19 -03:00

17 lines
488 B
JavaScript
Executable File

import { check } from 'meteor/check';
import sharedWebcam from '../modifiers/sharedWebcam';
import { isValidStream } from '/imports/api/video-streams/server/helpers';
export default function handleUserSharedHtml5Webcam({ header, body }, meetingId) {
const { userId, stream } = body;
check(header, Object);
check(meetingId, String);
check(userId, String);
check(stream, String);
if (!isValidStream(stream)) return false;
return sharedWebcam(meetingId, userId, stream);
}