setTrackSubscriptionPermissions

fun setTrackSubscriptionPermissions(allParticipantsAllowed: Boolean, participantTrackPermissions: List<ParticipantTrackPermission> = emptyList())

Control who can subscribe to LocalParticipant's published tracks.

By default, all participants can subscribe. This allows fine-grained control over who is able to subscribe at a participant and track level.

Note: if access is given at a track-level (i.e. both allParticipantsAllowed and ParticipantTrackPermission.allTracksAllowed are false), any newer published tracks will not grant permissions to any participants and will require a subsequent permissions update to allow subscription.

Parameters

allParticipantsAllowed

Allows all participants to subscribe all tracks. Takes precedence over participantTrackPermissions if set to true. By default this is set to true.

participantTrackPermissions

Full list of individual permissions per participant/track. Any omitted participants will not receive any permissions.

Sources

SDK source
Link copied to clipboard