Conference
Provides access to methods for managing outgoing or incoming conferences.
Conference objects are obtained calling ConferenceManager#createConference method or handling
the onIncoming
event of a connected ConferenceManager instance.
Events
remoteStreams
(ImmutableSet<ManagedStream> currentValue, ImmutableSet<ManagedStream> oldValue, EventInfo)- Emitted every time remoteStreams changes.
outgoingInvitations
(ImmutableSet<Invitation> currentValue, Invitation<ManagedStream> oldValue)- Emitted every a outgoingInvitation changes.
expelled
- Emitted when we are expelled from the conference. deprecated
destroyed
- Emitted when the conference is destroyed. deprecated
status
(ConferenceStatus currentValue, ConferenceStatus<ManagedStream> oldValue)- Emitted every time the conference status changes. deprecated
remoteParticipants
(ImmutableMap<gatewayUsername, 'IN_CALL'|'HOLD'> currentValue, ImmutableMap<gatewayUsername, 'IN_CALL'|'HOLD'> oldValue)- Emitted every time the participants list changes.
transferError
- Emitted when an error occurs in a transfer.
participantAdded
(gatewayUsername gatewayUsername)- Emitted when a new participant joins the conference
participantRemoved
(gatewayUsername gatewayUsername)- Emitted when a participant leaves the conference
participantHold
(gatewayUsername gatewayUsername)- Emitted when a participant starts holding the call
participantUnhold
(gatewayUsername gatewayUsername)- Emitted when a participant stops holding the call
localStreamAdded
(LocalStreamEvent)- Emitted on a new local stream
localStreamRemoved
(LocalStreamEvent)- Emitted on local stream removed
remoteStreamAdded
(RemoteStreamAddedEvent)- Emitted on remote stream added
remoteStreamRemove
(RemoteStreamRemovedEvent)- Emitted on remote stream removed
Member Summary
Public Members | ||
public |
emitter: EventEmitter |
|
public |
Use to keep the number of invitations sent in this conference |
|
public get |
Check if conference is on hold state. |
Method Summary
Public Methods | ||
public |
Indicates if participants can be invited to this conference or not |
|
public |
cancelInvitation(invitation: Invitation, session: string) Cancels a invitation of this conference |
|
public |
expelParticipant(participant: string, session: string): Promise Expels a participant from this conference |
|
public |
expelParticipants(participants: string[]): Promise Expels a list of participant from this conference |
|
public |
Returns the current participant count. |
|
public |
Returns the ID of the conference |
|
public |
Returns the invitation to the conference if the participant was invited. |
|
public |
Allows access to local streams and actions related to changing which local media is shared |
|
public |
Returns a Set of outgoing invitations |
|
public |
Returns the username of the conference's owner |
|
public |
Returns a Set of strings containing the gateway username of every remote participant |
|
public |
getRemoteParticipants(): ImmutableMap<string, 'IN_CALL'|'HOLD'> Returns the remote participants |
|
public |
Returns a Map containing a list of ManagedStreams per participant (gateway user name) |
|
public |
Returns a Set of strings containing the address of remote participants (gateway user names) that are also wac users |
|
public |
Returns the current status of the conference |
|
public |
getStatus$(): Observable<ConferenceStatus> Returns an observable for the status of the conference |
|
public |
Returns a boolean value indicating if at least one of the remote conference participants has a video track |
|
public |
Local hold Stop publishing and subscribing to the media in the conference |
|
public |
async inviteParticipant(participant: String, session: String, mediaTypes: MediaTypes, autoAccepted: boolean, requestId: string, resolve: boolean, context: object): Promise<Object> Invites a new participant to this conference |
|
public |
inviteParticipants(participants: string[]): Promise Invites a list of new participant to this conference |
|
public |
Check if a conference is being transfering |
|
public |
|
|
public |
Connects to the conference |
|
public |
Leaves the conference |
|
public |
Send data to the audio's room |
|
public |
unattendedCallTransfer(participant: string, mediaTypes: MediaTypes): Promise Create an unattendedCallTransfer towards a user in the system |
|
public |
Stop local hold Republishes all previously published media, subscribes to previously subscribed media and notifies new status to other participants. |
|
public |
updateMedia(audio: *, video: *, screen: *): * |
Public Members
public emitter: EventEmitter source
Public Methods
public canManage(): boolean source
Indicates if participants can be invited to this conference or not
public cancelInvitation(invitation: Invitation, session: string) source
Cancels a invitation of this conference
Params:
Name | Type | Attribute | Description |
invitation | Invitation | ||
session | string |
|
public expelParticipant(participant: string, session: string): Promise source
Expels a participant from this conference
public expelParticipants(participants: string[]): Promise source
Expels a list of participant from this conference
Params:
Name | Type | Attribute | Description |
participants | string[] |
public getCurrentParticipants(): number source
Returns the current participant count. Includes in the count the users with active invitations.
public getInvite(): ConferenceInvite source
Returns the invitation to the conference if the participant was invited.
public getLocalMediaHandler(): LocalMediaHandler source
Allows access to local streams and actions related to changing which local media is shared
public getOutgoingInvitations(): ImmutableSet<Invitation> source
Returns a Set of outgoing invitations
public getRemoteGatewayUsernames(): ImmutableSet<string> source
Returns a Set of strings containing the gateway username of every remote participant
public getRemoteParticipants(): ImmutableMap<string, 'IN_CALL'|'HOLD'> source
Returns the remote participants
public getRemoteStreams(): ImmutableMap<string, ManagedStream[]> source
Returns a Map containing a list of ManagedStreams per participant (gateway user name)
public getRemoteWacAddresses(): ImmutableSet<string> source
Returns a Set of strings containing the address of remote participants (gateway user names) that are also wac users
public getStatus$(): Observable<ConferenceStatus> source
Returns an observable for the status of the conference
public hasRemoteVideo(): boolean source
Returns a boolean value indicating if at least one of the remote conference participants has a video track
public hold(): Promise source
Local hold Stop publishing and subscribing to the media in the conference
public async inviteParticipant(participant: String, session: String, mediaTypes: MediaTypes, autoAccepted: boolean, requestId: string, resolve: boolean, context: object): Promise<Object> source
Invites a new participant to this conference
Params:
Name | Type | Attribute | Description |
participant | String | ||
session | String |
|
|
mediaTypes | MediaTypes |
|
the MediaTypes of this invitation |
autoAccepted | boolean |
|
|
requestId | string |
|
the ID of the request that generated this invitation. |
resolve | boolean |
|
indicates if participant address should be resolved to an user gatewayUsername. |
context | object |
|
Arbitrary context that can be sent when making an invite |
Return:
Promise<Object> | A promise with an object with two properties: SIP code and whoAccepted the invite |
Throw:
throw error when a participant has already invited or is joined to the conference. |
public inviteParticipants(participants: string[]): Promise source
Invites a list of new participant to this conference
Params:
Name | Type | Attribute | Description |
participants | string[] |
public async leave(errorCode: number): Promise source
Leaves the conference
Params:
Name | Type | Attribute | Description |
errorCode | number | the rejection cause when an invitation is received and the conference has not been joined. |
public sendDtmf(value: string): Promise<undefined, Error source
Send data to the audio's room
Params:
Name | Type | Attribute | Description |
value | string |
Return:
Promise<undefined, Error |
public unattendedCallTransfer(participant: string, mediaTypes: MediaTypes): Promise source
Create an unattendedCallTransfer towards a user in the system
Params:
Name | Type | Attribute | Description |
participant | string | ||
mediaTypes | MediaTypes |
|
the current media types will be used if nothing is specified |
public unhold(): Promise source
Stop local hold Republishes all previously published media, subscribes to previously subscribed media and notifies new status to other participants.
public updateMedia(audio: *, video: *, screen: *): * source
Params:
Name | Type | Attribute | Description |
audio | * | ||
video | * | ||
screen | * |
Return:
* |