| Package | com.adobe.rtc.session |
| Class | public class ConnectSessionContainer |
| Inheritance | ConnectSessionContainer mx.containers.Canvas |
| Implements | IConnectSession |
roomURL and authenticator.autoLogin
property to false. In this case, call the login() method when needed. synchronizationChange event and the isSynchronized property to determine
when the session is fully synchronized.
creationComplete event for those children.
To end the session, call logout() to simply disconnect, or call close()
to remove all children before doing so. If the session is disconnected without these methods
(for example, due to network or server failure), ConnectSessionContainer will automatically reconnect.
<rtc:AdobeHSAuthenticator userName="AdobeIDusername password="AdobeIDpassword" id="auth"/>
<session:ConnectSessionContainer
roomURL="http://connect.acrobat.com/fakeRoom/"
authenticator="{auth}">
<pods:WebCamera width="100%" height="100%"/>
</session:ConnectSessionContainer>See also
| Property | Defined by | ||
|---|---|---|---|
| authenticator : AbstractAuthenticator
(Required) The authenticator through which login information is passed.
| ConnectSessionContainer | ||
| autoLogin : Boolean = true
Whether to log in as soon as the
ConnectSessionContainer is created (true) or wait until login()
is explicitly called (false). | ConnectSessionContainer | ||
| fileManager : FileManager
[read-only]
The
FileManager class for the current session. | ConnectSessionContainer | ||
| initialRoomSettings : RoomSettings
The initial room settings for the current room.
| ConnectSessionContainer | ||
| isSynchronized : Boolean [read-only]
[Read-only] A variable that indicates whether or not the ConnectSession is fully synchronized with the service.
| ConnectSessionContainer | ||
| roomManager : RoomManager
[read-only]
The
RoomManager class for the current session. | ConnectSessionContainer | ||
| roomURL : String
[Required] The URL of the room to which to connect.
| ConnectSessionContainer | ||
| streamManager : StreamManager
[read-only]
The
StreamManager class for the current session. | ConnectSessionContainer | ||
| userManager : UserManager
[read-only]
The
UserManager class for the current session. | ConnectSessionContainer | ||
| Method | Defined by | ||
|---|---|---|---|
| ConnectSessionContainer | |||
|
addEventListener(p_type:String, p_listener:Function, p_useCapture:Boolean = false, p_priority:int = 0, p_useWR:Boolean = false):void
| ConnectSessionContainer | ||
|
close(p_reason:String = ""):void
Logs out, disconnects from the session, and removes any children from the
displayList. | ConnectSessionContainer | ||
|
login():void
Logs in and begins the process of synchronizing with the room.
| ConnectSessionContainer | ||
|
logout():void
Logs out and disconnects from the session.
| ConnectSessionContainer | ||
|
removeEventListener(p_type:String, p_listener:Function, p_useCapture:Boolean = false):void
| ConnectSessionContainer | ||
| Method | Defined by | ||
|---|---|---|---|
|
createChildren():void
| ConnectSessionContainer | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the session is closed before any children are removed. | ConnectSessionContainer | |||
| Dispatched when there's an error on the server. | ConnectSessionContainer | |||
The synchronizationChange is dispatched when:
| ConnectSessionContainer | |||
| authenticator | property |
authenticator:AbstractAuthenticator [read-write](Required) The authenticator through which login information is passed.
Implementation public function get authenticator():AbstractAuthenticator
public function set authenticator(value:AbstractAuthenticator):void
| autoLogin | property |
public var autoLogin:Boolean = true
Whether to log in as soon as the ConnectSessionContainer is created (true) or wait until login()
is explicitly called (false).
The default value is true.
| fileManager | property |
fileManager:FileManager [read-only]
The FileManager class for the current session.
public function get fileManager():FileManager
| initialRoomSettings | property |
initialRoomSettings:RoomSettings [read-write]The initial room settings for the current room. Note that this property only works the FIRST TIME the room receives a connection from an user with an owner role.
Implementation public function get initialRoomSettings():RoomSettings
public function set initialRoomSettings(value:RoomSettings):void
| isSynchronized | property |
isSynchronized:Boolean [read-only][Read-only] A variable that indicates whether or not the ConnectSession is fully synchronized with the service.
This property can be used as the source for data binding.
Implementation public function get isSynchronized():Boolean
| roomManager | property |
roomManager:RoomManager [read-only]
The RoomManager class for the current session.
public function get roomManager():RoomManager
| roomURL | property |
roomURL:String [read-write][Required] The URL of the room to which to connect.
Implementation public function get roomURL():String
public function set roomURL(value:String):void
| streamManager | property |
streamManager:StreamManager [read-only]
The StreamManager class for the current session.
public function get streamManager():StreamManager
| userManager | property |
userManager:UserManager [read-only]
The UserManager class for the current session.
public function get userManager():UserManager
| ConnectSessionContainer | () | constructor |
public function ConnectSessionContainer()
| addEventListener | () | method |
public override function addEventListener(p_type:String, p_listener:Function, p_useCapture:Boolean = false, p_priority:int = 0, p_useWR:Boolean = false):voidParameters
p_type:String |
|
p_listener:Function |
|
p_useCapture:Boolean (default = false) |
|
p_priority:int (default = 0) |
|
p_useWR:Boolean (default = false) |
| close | () | method |
public function close(p_reason:String = ""):void
Logs out, disconnects from the session, and removes any children from the
displayList.
p_reason:String (default = "") — An optional reason for closing the session.
|
| createChildren | () | method |
protected override function createChildren():void
| login | () | method |
public function login():void
Logs in and begins the process of synchronizing with the room. Note that unless autoLogin is set to false,
login() is called automatically upon the container being added to the display list.
| logout | () | method |
public function logout():void
Logs out and disconnects from the session. Any children built are left on
the displayList.
| removeEventListener | () | method |
public override function removeEventListener(p_type:String, p_listener:Function, p_useCapture:Boolean = false):voidParameters
p_type:String |
|
p_listener:Function |
|
p_useCapture:Boolean (default = false) |
| close | event |
com.adobe.rtc.events.ConnectSessionEvent
Dispatched when the session is closed before any children are removed.
| error | event |
com.adobe.rtc.events.SessionEvent
Dispatched when there's an error on the server.
| synchronizationChange | event |
com.adobe.rtc.events.SessionEvent
The synchronizationChange is dispatched when:
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/session/ConnectSessionContainer.html