make enabling acoustic echo cancel configurable
This commit is contained in:
parent
6636d01627
commit
6cd4b502e7
@ -42,6 +42,7 @@
|
||||
autoJoin="false"
|
||||
skipCheck="false"
|
||||
showButton="true"
|
||||
enabledEchoCancel="true"
|
||||
dependsOn="ViewersModule"
|
||||
/>
|
||||
|
||||
|
@ -9,5 +9,8 @@ package org.bigbluebutton.modules.phone
|
||||
|
||||
[Bindable]
|
||||
public var skipCheck:Boolean = false;
|
||||
|
||||
[Bindable]
|
||||
public var enabledEchoCancel:Boolean = false;
|
||||
}
|
||||
}
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user