From a17b28b23f367f976eb64b1e84a705ee1ba13d3d Mon Sep 17 00:00:00 2001 From: Lucas Zawacki Date: Wed, 23 Oct 2019 16:24:34 -0300 Subject: [PATCH] Fix variable definition in initializeExternalVideo --- .../external-videos/server/methods/initializeExternalVideo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/api/external-videos/server/methods/initializeExternalVideo.js b/bigbluebutton-html5/imports/api/external-videos/server/methods/initializeExternalVideo.js index 85dbdaed28..2fb30c3e11 100644 --- a/bigbluebutton-html5/imports/api/external-videos/server/methods/initializeExternalVideo.js +++ b/bigbluebutton-html5/imports/api/external-videos/server/methods/initializeExternalVideo.js @@ -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); } -}; +}