Room Listener
interface RoomListener
Content copied to clipboard
Room Listener, this class provides callbacks that clients should override.
Types
Functions
onActiveSpeakersChanged
Link copied to clipboard
open fun onActiveSpeakersChanged(speakers: List<Participant>, room: Room)
Content copied to clipboard
onConnectionQualityChanged
Link copied to clipboard
open fun onConnectionQualityChanged(participant: Participant, quality: ConnectionQuality)
Content copied to clipboard
onDataReceived
Link copied to clipboard
open fun onDataReceived(data: ByteArray, participant: RemoteParticipant?, room: Room)
Content copied to clipboard
onDisconnect
Link copied to clipboard
onFailedToConnect
Link copied to clipboard
onMetadataChanged
Link copied to clipboard
open fun onMetadataChanged(participant: Participant, prevMetadata: String?, room: Room)
Content copied to clipboard
onParticipantConnected
Link copied to clipboard
open fun onParticipantConnected(room: Room, participant: RemoteParticipant)
Content copied to clipboard
When a RemoteParticipant joins after the local participant.
onParticipantDisconnected
Link copied to clipboard
open fun onParticipantDisconnected(room: Room, participant: RemoteParticipant)
Content copied to clipboard
When a RemoteParticipant leaves after the local participant has joined.
onReconnected
Link copied to clipboard
onReconnecting
Link copied to clipboard
onTrackMuted
Link copied to clipboard
open fun onTrackMuted(publication: TrackPublication, participant: Participant, room: Room)
Content copied to clipboard
onTrackPublished
Link copied to clipboard
open fun onTrackPublished(publication: LocalTrackPublication, participant: LocalParticipant, room: Room)
Content copied to clipboard
open fun onTrackPublished(publication: RemoteTrackPublication, participant: RemoteParticipant, room: Room)
Content copied to clipboard
onTrackSubscribed
Link copied to clipboard
open fun onTrackSubscribed(track: Track, publication: TrackPublication, participant: RemoteParticipant, room: Room)
Content copied to clipboard
The LocalParticipant has subscribed to a new track.
onTrackSubscriptionFailed
Link copied to clipboard
open fun onTrackSubscriptionFailed(sid: String, exception: Exception, participant: RemoteParticipant, room: Room)
Content copied to clipboard
onTrackUnmuted
Link copied to clipboard
open fun onTrackUnmuted(publication: TrackPublication, participant: Participant, room: Room)
Content copied to clipboard
onTrackUnpublished
Link copied to clipboard
open fun onTrackUnpublished(publication: LocalTrackPublication, participant: LocalParticipant, room: Room)
Content copied to clipboard
LocalParticipant has unpublished a track
open fun onTrackUnpublished(publication: RemoteTrackPublication, participant: RemoteParticipant, room: Room)
Content copied to clipboard
A RemoteParticipant has unpublished a track
onTrackUnsubscribed
Link copied to clipboard
open fun onTrackUnsubscribed(track: Track, publications: TrackPublication, participant: RemoteParticipant, room: Room)
Content copied to clipboard
Sources
SDK source
Link copied to clipboard