14 lines
402 B
JavaScript
14 lines
402 B
JavaScript
import { check } from 'meteor/check';
|
|
import startExternalVideo from '../modifiers/startExternalVideo';
|
|
|
|
export default async function handleStartExternalVideo({ header, body }, meetingId) {
|
|
check(header, Object);
|
|
check(body, Object);
|
|
check(meetingId, String);
|
|
|
|
const { userId } = header;
|
|
const { externalVideoUrl } = body;
|
|
|
|
await startExternalVideo(meetingId, userId, externalVideoUrl);
|
|
}
|