ConferenceManager
This class provides access to every conference related feature This class must never be directly instantiated, instances of this class can be obtained using Session#getConferenceManager.
Events
conferenceInvitation
Conference - Emitted every time an invitation to a conference room is received
Member Summary
Public Members | ||
public |
emitter: EventEmitter |
Method Summary
Public Methods | ||
public |
Creates a new conference and invites an agent to it |
|
public |
async createConference(options: object): Promise<Conference> Creates a new conference room |
|
public |
async getConferenceByUri(uri: string): Promise<Conference> this method was deprecated. Use "getMeetingConference" or "getQuickConference" instead
Get a Conference by uri |
|
public |
getConferenceLog(): ConferenceLog |
|
public |
getCurrentInvitations(): Promise<Conference[]> Asks the server for the current invitations available to the user |
|
public |
|
|
public |
async getMeetingConference(meetingId: string, password: string): Promise<Conference> Get a conference for a meeting |
|
public |
async getQuickConference(quickConferenceId: string): Promise<Conference> Gets a quick conference |
|
public |
setDefaultMediaConstraints(defaultMediaConstraints: MediaStreamConstraints) Sets the constraints that will be used as initial value for media requests when initializing conferences. |
Public Members
public emitter: EventEmitter source
Public Methods
public async callAgent(mediaTypes: MediaTypes, contextInfo: Object): Promise<Conference> source
Creates a new conference and invites an agent to it
Params:
Name | Type | Attribute | Description |
mediaTypes | MediaTypes | the media types that will be used to call an agent |
|
contextInfo | Object |
|
arbitrary context that can be sent to an agent |
public async createConference(options: object): Promise<Conference> source
Creates a new conference room
Params:
Name | Type | Attribute | Description |
options | object | ||
options.recording | boolean | boolean indicating whether the conference is going to be recorded or not. This applies only if the user has PermissionManager.canSetRecordOption permission |
public async getConferenceByUri(uri: string): Promise<Conference> source
Get a Conference by uri
Params:
Name | Type | Attribute | Description |
uri | string |
public getCurrentInvitations(): Promise<Conference[]> source
Asks the server for the current invitations available to the user
public async getMeetingConference(meetingId: string, password: string): Promise<Conference> source
Get a conference for a meeting
Throw:
thrown when trying to access the conference before scheduled time |
|
thrown when the conference is protected by password and the password is not recived or is not valid. |
public async getQuickConference(quickConferenceId: string): Promise<Conference> source
Gets a quick conference
Params:
Name | Type | Attribute | Description |
quickConferenceId | string |
public setDefaultMediaConstraints(defaultMediaConstraints: MediaStreamConstraints) source
Sets the constraints that will be used as initial value for media requests when initializing conferences. For more information about valid values see https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamConstraints
Params:
Name | Type | Attribute | Description |
defaultMediaConstraints | MediaStreamConstraints |
Example:
conferenceManager.setDefaultMediaConstraints({
audio: {
autoGainControl: true,
echoCancellation: true,
noiseSuppression: true,
},
video: true,
});