12 lines
404 B
JavaScript
12 lines
404 B
JavaScript
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];
|
|
}
|
|
};
|