18 lines
535 B
JavaScript
18 lines
535 B
JavaScript
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;
|
|
}
|