Share via


Session Object

The Session object supports all session types and represents the entity that can create or receive audio/video calls or IM sessions. Session information such as state, media types, and participant information can be retrieved by the session interface. The AddParticipant method creates the Participant object and initiates the IM session or audio/video call. The IRTCSession interface contains a list of methods available. The Create a Session and Make a Call code example shows how to create the Session object.

The IRTCSession2 interface, available starting with the version 1.2 API, is created by calling QueryInterface on the Session object, thus inheriting the methods and interfaces from the version 1.0 object. The Session2 interface provides additional methods to specify security levels for the session as well as to manage a session with an application-defined session description.