Indicate the user has to click ALLOW in Chrome.

This commit is contained in:
Gustavo Salazar 2013-12-13 11:31:08 -08:00
parent 3f0d193644
commit e1571aead4
3 changed files with 74 additions and 1 deletions

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
This program is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 3.0 of the License, or (at your option) any later
version.
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
-->
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
showCloseButton="false" creationComplete="init()"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
horizontalAlign="center"
borderAlpha="0.0"
borderThicknessLeft="0"
borderThicknessRight="0"
borderThicknessTop="0"
x="20"
y="-20">
<mx:Script>
<![CDATA[
import mx.core.FlexGlobals;
import mx.managers.PopUpManager;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.core.BBB;
import org.bigbluebutton.main.model.users.events.ConnectionFailedEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
private function init():void {
//addEventListener(Event.CLOSE, onUserLoggedOutWindowClose);
}
private function onUserLoggedOutWindowClose(e:Event):void {
//PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:Image source="@Embed('assets/chrome_allow.png')"/>
</mx:TitleWindow>

View File

@ -60,6 +60,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private var micName:String;
private var playingAudio:Boolean = false;
private var images:Images = new Images();
private var chromeAllow:ChromeAllow;
private var userBrowser:String;
[Bindable] private var cancelIcon:Class = images.cancel;
[Bindable] private var microphoneList:Array;
[Bindable]private var baseIndex:int = 1;
@ -119,7 +121,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
microphoneList = Microphone.names;
LogUtil.debug("Available microphones: " + microphoneList);
mic = Microphone.getMicrophone(comboMicList.selectedIndex);
testMicrophone();
testMicrophone();
showChromeAllow();
/* if (mic != null) {
if (mic.muted) {
@ -173,6 +176,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
if (mic.activityLevel > biggestMicLevel) {
biggestMicLevel = mic.activityLevel;
}
if (chromeAllow && mic.activityLevel > 0){
PopUpManager.removePopUp(chromeAllow);
}
//LogUtil.debug("Mic level: " + mic.activityLevel);
micLevel.setProgress(mic.activityLevel, 100);
}
@ -189,6 +195,14 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
}
private function showChromeAllow():void{
userBrowser = ExternalInterface.call("determineBrowser");
if (userBrowser == "Chrome"){
chromeAllow = new ChromeAllow();
PopUpManager.addPopUp(chromeAllow, this, false);
}
}
/*
private function showMicSettingsPanel():void {
if (settingBtn.selected) {
@ -295,6 +309,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
toolTip="{ResourceUtil.getInstance().getString('bbb.micSettings.changeMic.toolTip')}"/>
</mx:HBox>
-->
<mx:VBox width="100%" paddingTop="5">
<mx:HRule width="100%"/>
<mx:Label id="testMicLabel"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB