- 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:
parent
6bf086f27b
commit
90e112692a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user