17 lines
518 B
JavaScript
17 lines
518 B
JavaScript
import RedisPubSub from '/imports/startup/server/redis';
|
|
import { check } from 'meteor/check';
|
|
|
|
import { removeExternalVideoStreamer } from '/imports/api/external-videos/server/streamer';
|
|
|
|
export default function handleMeetingDestruction({ body }) {
|
|
check(body, Object);
|
|
const { meetingId } = body;
|
|
check(meetingId, String);
|
|
|
|
if (!process.env.BBB_HTML5_ROLE || process.env.BBB_HTML5_ROLE === 'frontend') {
|
|
removeExternalVideoStreamer(meetingId);
|
|
}
|
|
|
|
return RedisPubSub.destroyMeetingQueue(meetingId);
|
|
}
|