make enabling acoustic echo cancel configurable

This commit is contained in:
Richard Alam 2011-10-17 13:59:48 -07:00
parent 6636d01627
commit 6cd4b502e7
3 changed files with 25 additions and 15 deletions

View File

@ -42,6 +42,7 @@
autoJoin="false"
skipCheck="false"
showButton="true"
enabledEchoCancel="true"
dependsOn="ViewersModule"
/>

View File

@ -9,5 +9,8 @@ package org.bigbluebutton.modules.phone
[Bindable]
public var skipCheck:Boolean = false;
[Bindable]
public var enabledEchoCancel:Boolean = false;
}
}

View File

@ -33,7 +33,7 @@ package org.bigbluebutton.modules.phone.managers {
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.core.BBB;
import org.bigbluebutton.main.events.BBBEvent;
import org.bigbluebutton.modules.phone.events.MicMutedEvent;
import org.bigbluebutton.modules.phone.PhoneOptions;
import org.bigbluebutton.modules.phone.events.MicrophoneUnavailEvent;
import org.bigbluebutton.modules.phone.events.PlayStreamStatusEvent;
@ -67,7 +67,13 @@ package org.bigbluebutton.modules.phone.managers {
}
private function setupMicrophone():void {
if (BBB.getFlashPlayerVersion() >= 10.3){
var vxml:XML = BBB.getConfigForModule("PhoneModule");
var phoneOptions:PhoneOptions = new PhoneOptions();
if (vxml != null) {
phoneOptions.enabledEchoCancel = (vxml.@enabledEchoCancel.toString().toUpperCase() == "TRUE") ? true : false;
}
if ((BBB.getFlashPlayerVersion() >= 10.3) && (phoneOptions.enabledEchoCancel)) {
LogUtil.debug("Using acoustic echo cancellation.");
mic = Microphone(Microphone["getEnhancedMicrophone"]());
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();