Show DisconnectView if initial RTMP connection fails.
This commit is contained in:
parent
6f909fc931
commit
a693b5d732
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,19 @@
|
||||
package org.bigbluebutton.air.main.models {
|
||||
|
||||
import org.bigbluebutton.air.common.TransitionAnimationEnum;
|
||||
import org.osflash.signals.ISignal;
|
||||
|
||||
public interface IUISession {
|
||||
function get loading():Boolean;
|
||||
function get loadingMessage():String;
|
||||
function get loadingChangeSignal():ISignal;
|
||||
function setLoading(val:Boolean, message:String):void;
|
||||
function get pageChangedSignal():ISignal;
|
||||
function get pageTransitionStartSignal():ISignal;
|
||||
function get currentPage():String;
|
||||
function get lastPage():String;
|
||||
function popPage(animation:int = TransitionAnimationEnum.APPEAR):void;
|
||||
function pushPage(value:String, details:Object = null, animation:int = TransitionAnimationEnum.APPEAR):void;
|
||||
function get currentPageDetails():Object;
|
||||
}
|
||||
}
|
||||
package org.bigbluebutton.air.main.models {
|
||||
|
||||
import org.bigbluebutton.air.common.TransitionAnimationEnum;
|
||||
import org.osflash.signals.ISignal;
|
||||
|
||||
public interface IUISession {
|
||||
function get loading():Boolean;
|
||||
function get loadingMessage():String;
|
||||
function get loadingChangeSignal():ISignal;
|
||||
function setLoading(val:Boolean, message:String = ""):void;
|
||||
function get pageChangedSignal():ISignal;
|
||||
function get pageTransitionStartSignal():ISignal;
|
||||
function get currentPage():String;
|
||||
function get lastPage():String;
|
||||
function popPage(animation:int = TransitionAnimationEnum.APPEAR):void;
|
||||
function pushPage(value:String, details:Object = null, animation:int = TransitionAnimationEnum.APPEAR):void;
|
||||
function get currentPageDetails():Object;
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user