TrackSubscriptionHelper

Functions

Link copied to clipboard
fun startTrackSubscriptionWatcher(room: Room, scope: CoroutineScope, participantIdentity: String? = null, trackName: String? = null, onSubscribed: (track: Any, participant: RemoteParticipant, publication: TrackPublication) -> Unit, manualSubscribe: (publication: TrackPublication) -> Unit? = null): Job

Start watching the Room for publications that match the target participant identity and/or track name. Calls onSubscribed when a subscribed Track instance is available for the matching publication.