2017-07-14 20:32:15 +08:00
|
|
|
import { check } from 'meteor/check';
|
2017-07-27 23:27:06 +08:00
|
|
|
import addScreenshare from '../modifiers/addScreenshare';
|
2017-07-14 20:32:15 +08:00
|
|
|
|
2023-03-17 02:13:43 +08:00
|
|
|
export default async function handleScreenshareStarted({ body }, meetingId) {
|
2017-07-14 20:32:15 +08:00
|
|
|
check(meetingId, String);
|
2017-07-14 22:18:46 +08:00
|
|
|
check(body, Object);
|
2023-03-17 02:13:43 +08:00
|
|
|
const result = await addScreenshare(meetingId, body);
|
|
|
|
return result;
|
2017-07-14 20:32:15 +08:00
|
|
|
}
|