diff --git a/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/Screen-Capturing.js b/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/Screen-Capturing.js index fa9ef54f49..ab3e08d207 100755 --- a/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/Screen-Capturing.js +++ b/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/Screen-Capturing.js @@ -135,7 +135,9 @@ this.getScreenConstraints = function(callback) { // this statement verifies chrome extension availability // if installed and available then it will invoke extension API // otherwise it will fallback to command-line based screen capturing API - if (chromeMediaSource == 'desktop' && !sourceId) { + // without a previous sourceId, Chrome will prompt the user to choose again + sourceId = null; + if (chromeMediaSource == 'desktop') { getSourceId(function() { screen_constraints.mandatory.chromeMediaSourceId = sourceId; callback(sourceId == 'PermissionDeniedError' ? sourceId : null, screen_constraints); diff --git a/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/verto_extension_share.js b/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/verto_extension_share.js index f273cb94a3..2dcdd52021 100755 --- a/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/verto_extension_share.js +++ b/bigbluebutton-html5/app/client/lib/bbb_verto_resources_use/verto_extension_share.js @@ -60,7 +60,6 @@ this.doshare = function(on, callback, videoTag) { }); } else { getChromeExtensionStatus( function(status) { - sourceId = null; getScreenConstraints(function(error, screen_constraints) { if(error) { return console.error(error);