Skip to navigation

ConferenceEvent (enum)

Web SDK v5 API reference
View as Markdown

Events

Values

Connected

Connected: "Connected"

Triggered after a conference has been successfully connected.

Listener is called with ConferenceConnected and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id
headersRecord<string, string>OptionalOptional headers passed with the event

Disconnected

Disconnected: "Disconnected"

Triggered after a conference has been disconnected.

Listener is called with ConferenceDisconnected and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id
headersRecord<string, string>OptionalOptional headers passed with the event
reasonConferenceDisconnectReasonRequiredReason that the conference ended with

EndpointAdded

EndpointAdded: "EndpointAdded"

Triggered after an endpoint is added to a conference.

Listener is called with ConferenceEndpointAddedPayload and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id
newEndpointIdstringRequiredEndpoint id

EndpointRemoved

EndpointRemoved: "EndpointRemoved"

Triggered after the endpoint is removed from a conference.

Listener is called with ConferenceEndpointRemoved and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id
removedEndpointIdstringRequiredEndpoint id

Failed

Failed: "Failed"

Triggered if a conference has failed.

Listener is called with ConferenceFailed and payload:

Parameters

ParameterTypeRequirementDescription
codenumberRequiredConference status code
conferenceIdstringRequiredConference id
headersRecord<string, string>OptionalOptional headers passed with the event
reasonstringRequiredConference failure reason

InfoReceived

InfoReceived: "InfoReceived"

Triggered when an INFO message is received within a conference.

Listener is called with ConferenceInfoReceived and payload:

Parameters

ParameterTypeRequirementDescription
bodystringRequiredBody of an INFO message
conferenceIdstringRequiredConference id
headersRecord<string, string>OptionalOptional headers passed with the event
mimeType${string}/${string}RequiredMIME type of an INFO message

MessageReceived

MessageReceived: "MessageReceived"

Triggered when a message is received within a conference.

Listener is called with ConferenceMessageReceived and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id
textstringRequiredContent of the message

ScreenSharingFailed

ScreenSharingFailed: "ScreenSharingFailed"

Triggered when screen sharing has failed to start in a conference.

Listener is called with ConferenceScreenSharingFailed and payload:

Parameters

ParameterTypeRequirementDescription
codeScreenSharingFailedCodeRequiredConference screen sharing status code
conferenceIdstringRequired
reasonstringRequiredConference screen sharing failure reason

ScreenSharingStarted

ScreenSharingStarted: "ScreenSharingStarted"

Triggered when screen sharing has started in a conference.

Listener is called with ConferenceScreenSharingStarted and payload:

Parameters

ParameterTypeRequirementDescription
conferenceIdstringRequiredConference id

StatsReport

StatsReport: "StatsReport"

Triggered when conference statistics are available for a conference.

Listener is called with ConferenceStatsReport and payload:

Parameters

ParameterTypeRequirementDescription
connectionConnectionStatsReportRequiredMedia connectivity statistics
localAudioLocalAudioStreamStatsReportRequiredStatistics for all active outgoing audio streams in a conference at the moment of the statistics collection
localVideoLocalVideoStreamStatsReportRequiredStatistics for all active outgoing video streams in a conference at the moment of the statistics collection
remoteRecord<Endpoint.id, { audio: RemoteAudioStreamStatsReport, video: RemoteVideoStreamStatsReport }>RequiredEndpoint statistics
timestampnumberRequiredTime at which the conference statistics are collected, relative to the UNIX epoch (Jan 1, 1970, UTC), in microseconds.