- if the user has no mic, join him to the voice conference anyway as listener. Don't display the mic check window.

This commit is contained in:
Richard Alam 2012-01-09 22:35:58 +00:00
parent 6bf086f27b
commit 90e112692a

View File

@ -59,7 +59,10 @@
phoneOptions.skipCheck = (vxml.@skipCheck.toString().toUpperCase() == "TRUE") ? true : false;
}
this.enabled = false;
if (phoneOptions.skipCheck) {
if (phoneOptions.skipCheck || noMicrophone()) {
/*
* If the user had no mic, let her join but she'll just be listening.
*/
var joinEvent:BBBEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
joinEvent.payload['useMicrophone'] = true;
dispatcher.dispatchEvent(joinEvent);
@ -76,6 +79,10 @@
t.start();
}
private function noMicrophone():Boolean {
return (Microphone.getMicrophone() == null || Microphone.names.length == 0);
}
private function onTimer(e:TimerEvent):void{
this.enabled = true;
}