Show DisconnectView if initial RTMP connection fails.

This commit is contained in:
Ghazi Triki 2018-02-27 19:14:06 +01:00
parent 6f909fc931
commit a693b5d732
5 changed files with 24 additions and 24 deletions

View File

@ -8,11 +8,12 @@ package org.bigbluebutton.air.main.commands {
public class DisconnectUserCommandAIR extends DisconnectUserCommand {
[Inject]
public var userUISession:IUISession;
public var uiSession:IUISession;
override public function execute():void {
userUISession.pushPage(PageEnum.DISCONNECT, disconnectionStatusCode, TransitionAnimationEnum.APPEAR);
super.execute();
uiSession.setLoading(false);
uiSession.pushPage(PageEnum.DISCONNECT, disconnectionStatusCode, TransitionAnimationEnum.APPEAR);
}
}
}

View File

@ -7,7 +7,7 @@ package org.bigbluebutton.air.main.models {
function get loading():Boolean;
function get loadingMessage():String;
function get loadingChangeSignal():ISignal;
function setLoading(val:Boolean, message:String):void;
function setLoading(val:Boolean, message:String = ""):void;
function get pageChangedSignal():ISignal;
function get pageTransitionStartSignal():ISignal;
function get currentPage():String;

View File

@ -31,7 +31,7 @@ package org.bigbluebutton.air.main.models {
return _loadingChangeSignal;
}
public function setLoading(val:Boolean, message:String):void {
public function setLoading(val:Boolean, message:String = ""):void {
_loading = val;
_loadingMessage = message;
try {

View File

@ -5,8 +5,6 @@ package org.bigbluebutton.air.main.views {
import flash.events.MouseEvent;
import flash.system.Capabilities;
import mx.core.FlexGlobals;
import org.bigbluebutton.air.main.models.IUISession;
import org.bigbluebutton.lib.main.models.IUserSession;
import org.bigbluebutton.lib.main.utils.DisconnectEnum;

View File

@ -178,6 +178,7 @@ package org.bigbluebutton.lib.user.services {
private function handleUserEjectedFromMeeting(m:Object):void {
trace(LOG + "handleUserEjectedFromMeeting() -- user ejected from meeting");
userSession.logoutSignal.dispatch();
disconnectUserSignal.dispatch(DisconnectEnum.CONNECTION_STATUS_USER_KICKED_OUT);
}