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

12 lines
403 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import Logger from '/imports/startup/server/logger';
export default function destroyExternalVideo(meetingId) {
const streamName = `external-videos-${meetingId}`;
if (Meteor.StreamerCentral.instances[streamName]) {
Logger.info(`Destroying External Video streamer object for ${streamName}`);
delete Meteor.StreamerCentral.instances[streamName];
}
}