2018-11-30 01:24:02 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
import Meetings from '/imports/api/meetings';
|
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
export default function startStream(credentials) {
|
|
|
|
const { meetingId } = credentials;
|
2018-11-30 01:24:02 +08:00
|
|
|
|
|
|
|
Logger.info(' user sharing a new youtube video: ', credentials);
|
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
check(meetingId, String);
|
2018-11-30 01:24:02 +08:00
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
return Meetings.update({ meetingId }, { $set: { externalVideoUrl: null } });
|
2018-11-30 01:24:02 +08:00
|
|
|
}
|