ParticipantListener

interface ParticipantListener

Functions

onDataReceived
Link copied to clipboard
open fun onDataReceived(data: ByteArray, participant: RemoteParticipant)
Received data published by another participant
onMetadataChanged
Link copied to clipboard
open fun onMetadataChanged(participant: Participant, prevMetadata: String?)
When a participant's metadata is updated, fired for all participants
onSpeakingChanged
Link copied to clipboard
open fun onSpeakingChanged(participant: Participant)
Fired when the current participant's isSpeaking property changes.
onTrackMuted
Link copied to clipboard
open fun onTrackMuted(publication: TrackPublication, participant: Participant)
The participant was muted.
onTrackPublished
Link copied to clipboard
open fun onTrackPublished(publication: LocalTrackPublication, participant: LocalParticipant)
When a new track is published by the local participant.
open fun onTrackPublished(publication: RemoteTrackPublication, participant: RemoteParticipant)
When a new track is published to room after the local participant has joined.
onTrackSubscribed
Link copied to clipboard
open fun onTrackSubscribed(track: Track, publication: RemoteTrackPublication, participant: RemoteParticipant)
Subscribed to a new track
onTrackSubscriptionFailed
Link copied to clipboard
open fun onTrackSubscriptionFailed(sid: String, exception: Exception, participant: RemoteParticipant)
Error had occurred while subscribing to a track
onTrackUnmuted
Link copied to clipboard
open fun onTrackUnmuted(publication: TrackPublication, participant: Participant)
The participant was unmuted.
onTrackUnpublished
Link copied to clipboard
open fun onTrackUnpublished(publication: LocalTrackPublication, participant: LocalParticipant)
A LocalParticipant has unpublished a track
open fun onTrackUnpublished(publication: RemoteTrackPublication, participant: RemoteParticipant)
A RemoteParticipant has unpublished a track
onTrackUnsubscribed
Link copied to clipboard
open fun onTrackUnsubscribed(track: Track, publication: RemoteTrackPublication, participant: RemoteParticipant)
A subscribed track is no longer available.

Inheritors

Room
Link copied to clipboard

Sources

SDK source
Link copied to clipboard