- allow user to set Flash to remember choice when asking permission to access the mic
This commit is contained in:
parent
689e684093
commit
1bc06e96df
@ -104,17 +104,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
private function micStatusEventHandler(event:StatusEvent):void {
|
||||
private function micStatusEventHandler(event:StatusEvent):void {
|
||||
var joinEvent:BBBEvent;
|
||||
switch(event.code) {
|
||||
case "Microphone.Muted":
|
||||
LogUtil.warn("Access to microphone has been denied.");
|
||||
var joinEvent:BBBEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
|
||||
joinEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
|
||||
joinEvent.payload['useMicrophone'] = false;
|
||||
dispatcher.dispatchEvent(joinEvent);
|
||||
break;
|
||||
case "Microphone.Unmuted":
|
||||
LogUtil.debug("Access to the microphone has been allowed.");
|
||||
var joinEvent:BBBEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
|
||||
joinEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
|
||||
joinEvent.payload['useMicrophone'] = true;
|
||||
dispatcher.dispatchEvent(joinEvent);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user