- allow user to set Flash to remember choice when asking permission to access the mic

This commit is contained in:
Richard Alam 2012-12-06 21:42:24 +00:00
parent 689e684093
commit 1bc06e96df

View File

@ -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;