Fix variable definition in initializeExternalVideo

This commit is contained in:
Lucas Zawacki 2019-10-23 16:24:34 -03:00
parent 47661f2b08
commit a17b28b23f

View File

@ -19,11 +19,11 @@ export default function initializeExternalVideo(credentials, options) {
const streamName = `external-videos-${meetingId}`;
if (!Meteor.StreamerCentral.instances[streamName]) {
streamer = new Meteor.Streamer(streamName);
const streamer = new Meteor.Streamer(streamName);
streamer.allowRead('all');
streamer.allowWrite('all');
streamer.allowEmit(allowFromPresenter);
} else {
Logger.debug('External Video streamer is already created for ', streamName);
}
};
}