bigbluebutton-Github/bigbluebutton-html5/imports/api/external-videos/server/handlers/stopExternalVideo.js
Pedro Beschorner Marin 6c84a3295b refactor(external videos): frontend permissions
Revoked extra frontend permission checks and removed dependency from
external video stop Meteor's system call.
2021-06-02 13:03:04 -03:00

12 lines
302 B
JavaScript

import { check } from 'meteor/check';
import stopExternalVideo from '../modifiers/stopExternalVideo';
export default function handleStopExternalVideo({ header }, meetingId) {
check(header, Object);
check(meetingId, String);
const { userId } = header;
stopExternalVideo(userId, meetingId);
}