setSubscriptionState

fun setSubscriptionState(participantId: ParticipantId, state: SubscriptionState, listener: RequestListener? = null)

Start or stop subscribing to all of a remote participant's tracks.

The optional callback (listener) will be invoked either when the operation has completed, or if it encounters an error.

Errors will also be provided to the CallClientListener.onError callback.

For more advanced subscription settings, see updateSubscriptions.


fun setSubscriptionState(participantId: ParticipantId, camera: SubscriptionState? = null, microphone: SubscriptionState? = null, screenVideo: SubscriptionState? = null, screenAudio: SubscriptionState? = null, listener: RequestListener? = null)

Start or stop subscribing to specific tracks from a remote participant.

The optional callback (listener) will be invoked either when the operation has completed, or if it encounters an error.

Errors will also be provided to the CallClientListener.onError callback.

For more advanced subscription settings, see updateSubscriptions.


fun setSubscriptionState(participantIdToState: Map<ParticipantId, SubscriptionState>, listener: RequestListener? = null)

Start or stop subscribing to all tracks from specific remote participants.

The optional callback (listener) will be invoked either when the operation has completed, or if it encounters an error.

Errors will also be provided to the CallClientListener.onError callback.

For more advanced subscription settings, see updateSubscriptions.