bigbluebutton-Github/bigbluebutton-html5/imports/api/external-videos/server/methods/stopWatchingExternalVideo.js

18 lines
535 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
import Meetings from '/imports/api/meetings';
export default function startStream(credentials, options) {
const { meetingId, requesterUserId, requesterToken } = credentials;
Logger.info(' user sharing a new youtube video: ', credentials);
check(requesterUserId, String);
check(requesterToken, String);
Meetings.update({ meetingId }, { $set: { externalVideoUrl: null } });
return true;
}