From 4348a0736a7d4d608324cdd8c31a79a69acf6797 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Tue, 9 Aug 2016 17:54:07 +0000 Subject: [PATCH] - start jws screen sharing - disable webrtc screen sharing --- .../src/ScreenshareModule.mxml | 147 +++++++++--------- .../managers/ScreenshareManager.as | 8 +- .../screenshare/model/ScreenshareOptions.as | 2 +- 3 files changed, 80 insertions(+), 77 deletions(-) diff --git a/bigbluebutton-client/src/ScreenshareModule.mxml b/bigbluebutton-client/src/ScreenshareModule.mxml index 1c91614083..9fc1331d4a 100755 --- a/bigbluebutton-client/src/ScreenshareModule.mxml +++ b/bigbluebutton-client/src/ScreenshareModule.mxml @@ -21,98 +21,99 @@ with BigBlueButton; if not, see . --> - - - - - + + + + + + - - - + return false; + } + ]]> + + + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/managers/ScreenshareManager.as b/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/managers/ScreenshareManager.as index 15e2d629ff..f15e436aa4 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/managers/ScreenshareManager.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/managers/ScreenshareManager.as @@ -147,12 +147,14 @@ package org.bigbluebutton.modules.screenshare.managers { if (option.useWebRTCIfAvailable && !BrowserCheck.isWebRTCSupported()) { usingJava = true; - var autoStart:Boolean = false; // harcode for now - publishWindowManager.startSharing(module.getCaptureServerUri(), module.getRoom(), autoStart, option.autoFullScreen); + publishWindowManager.startSharing(module.getCaptureServerUri(), module.getRoom(), option.autoStart, option.autoFullScreen); sharing = true; service.requestStartSharing(); } else { + sharing = true; usingJava = false; + publishWindowManager.startSharing(module.getCaptureServerUri(), module.getRoom(), option.autoStart, option.autoFullScreen); + service.requestStartSharing(); } } @@ -182,7 +184,7 @@ package org.bigbluebutton.modules.screenshare.managers { toolbarButtonManager.startedSharing(); var option:ScreenshareOptions = new ScreenshareOptions(); option.parseOptions(); - publishWindowManager.startSharing(module.getCaptureServerUri(), module.getRoom(), autoStart, option.autoFullScreen); + publishWindowManager.startSharing(module.getCaptureServerUri(), module.getRoom(), option.autoStart, option.autoFullScreen); sharing = true; } diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/model/ScreenshareOptions.as b/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/model/ScreenshareOptions.as index 6b02236b87..f581fbb91d 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/model/ScreenshareOptions.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/screenshare/model/ScreenshareOptions.as @@ -26,7 +26,7 @@ package org.bigbluebutton.modules.screenshare.model [Bindable] public var autoStart:Boolean = false; [Bindable] public var autoFullScreen:Boolean = false; [Bindable] public var baseTabIndex:int; - [Bindable] public var useWebRTCIfAvailable:Boolean = true; + [Bindable] public var useWebRTCIfAvailable:Boolean = false; [Bindable] public var chromeExtensionKey:String = null; [Bindable] public var helpUrl:String;