Packagecom.adobe.rtc.session
Classpublic class ConnectSessionContainer
InheritanceConnectSessionContainer Inheritance mx.containers.Canvas
ImplementsIConnectSession

ConnectSessionContainer is a Container-based tag which implements IConnectSession. As such, an instance of ConnectSessionContainer corresponds to a session established with an RTC room (as does any IConnectSession). Being container-based, it provides the convenience of easy expression through MXML tags. ConnectSessionContainer has the following behavior: If an action should be taken once the children are created, use the standard 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.
Creating a session
  <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

com.adobe.rtc.session.IConnectSession
com.adobe.rtc.authentication.AdobeHSAuthenticator
com.adobe.rtc.sharedManagers.UserManager
com.adobe.rtc.sharedManagers.RoomManager
com.adobe.rtc.sharedManagers.StreamManager
com.adobe.rtc.sharedManagers.FileManager


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined by
  
ConnectSessionContainer
Events
 EventSummaryDefined 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:
  • When ConnectSession establishes a connection to the service and has fully synchronized the major room elements such as UserManager, RoomManager, StreamManager, and FileManager.
  • When the component loses its connection to the service.
ConnectSessionContainer
Property detail
authenticatorproperty
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
autoLoginproperty 
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.

fileManagerproperty 
fileManager:FileManager  [read-only]

The FileManager class for the current session.

Implementation
    public function get fileManager():FileManager
initialRoomSettingsproperty 
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
isSynchronizedproperty 
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
roomManagerproperty 
roomManager:RoomManager  [read-only]

The RoomManager class for the current session.

Implementation
    public function get roomManager():RoomManager
roomURLproperty 
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
streamManagerproperty 
streamManager:StreamManager  [read-only]

The StreamManager class for the current session.

Implementation
    public function get streamManager():StreamManager
userManagerproperty 
userManager:UserManager  [read-only]

The UserManager class for the current session.

Implementation
    public function get userManager():UserManager
Constructor detail
ConnectSessionContainer()constructor
public function ConnectSessionContainer()
Method detail
addEventListener()method
public override function addEventListener(p_type:String, p_listener:Function, p_useCapture:Boolean = false, p_priority:int = 0, p_useWR:Boolean = false):void

Parameters
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.

Parameters
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):void

Parameters
p_type:String
 
p_listener:Function
 
p_useCapture:Boolean (default = false)
Event detail
closeevent 
Event object type: com.adobe.rtc.events.ConnectSessionEvent

Dispatched when the session is closed before any children are removed.

errorevent  
Event object type: com.adobe.rtc.events.SessionEvent

Dispatched when there's an error on the server.

synchronizationChangeevent  
Event object type: 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