2019-10-24 03:20:52 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
2020-02-14 05:01:36 +08:00
|
|
|
export default function destroyExternalVideo(meetingId) {
|
2019-10-24 03:20:52 +08:00
|
|
|
const streamName = `external-videos-${meetingId}`;
|
|
|
|
|
|
|
|
if (Meteor.StreamerCentral.instances[streamName]) {
|
|
|
|
Logger.info(`Destroying External Video streamer object for ${streamName}`);
|
|
|
|
delete Meteor.StreamerCentral.instances[streamName];
|
|
|
|
}
|
2020-02-07 04:47:28 +08:00
|
|
|
}
|