Webcam, desktop and micrphone sharing are disabled when Puffin browser is detected.

This commit is contained in:
Ghazi Triki 2015-08-19 09:51:35 +01:00
parent f0ed185c71
commit 7835bfb80c
3 changed files with 25 additions and 4 deletions

View File

@ -71,6 +71,15 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
vboxMic.percentWidth = 50;
vboxListen.percentWidth = 50;
}
// If Puffin browser is deteted
if (ExternalInterface.call("determineBrowser")[0] == "Puffin") {
vruleListen.visible = vruleListen.includeInLayout = vboxMic.visible = vboxMic.includeInLayout = false;
vboxListen.percentWidth = 100;
if (!phoneOptions.showPhoneOption) {
this.width = this.width/2;
}
}
}
private function onMicClick():void {

View File

@ -18,6 +18,8 @@
*/
package org.bigbluebutton.modules.deskshare.model
{
import flash.external.ExternalInterface;
import org.bigbluebutton.core.BBB;
public class DeskshareOptions
@ -52,7 +54,11 @@ package org.bigbluebutton.modules.deskshare.model
baseTabIndex = 201;
}
if (vxml.@showButton != undefined){
showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
// If we are using Puffin browser
if (ExternalInterface.call("determineBrowser")[0] == "Puffin") {
showButton = false;
}
}
}
}

View File

@ -18,6 +18,8 @@
*/
package org.bigbluebutton.modules.videoconf.model
{
import flash.external.ExternalInterface;
import org.bigbluebutton.core.BBB;
public class VideoConfOptions
@ -97,6 +99,10 @@ package org.bigbluebutton.modules.videoconf.model
}
if (vxml.@showButton != undefined) {
showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
// If we are using Puffin browser
if (ExternalInterface.call("determineBrowser")[0] == "Puffin") {
showButton = false;
}
}
if (vxml.@autoStart != undefined) {
autoStart = (vxml.@autoStart.toString().toUpperCase() == "TRUE") ? true : false;
@ -113,9 +119,9 @@ package org.bigbluebutton.modules.videoconf.model
if (vxml.@viewerWindowMaxed != undefined) {
viewerWindowMaxed = (vxml.@viewerWindowMaxed.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@skipCamSettingsCheck != undefined) {
skipCamSettingsCheck = (vxml.@skipCamSettingsCheck.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@skipCamSettingsCheck != undefined) {
skipCamSettingsCheck = (vxml.@skipCamSettingsCheck.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@viewerWindowLocation != undefined) {
viewerWindowLocation = vxml.@viewerWindowLocation.toString().toUpperCase();
}