Use participantIdentity instead of Sid for track permissions. (#265)

This commit is contained in:
David Zhao
2023-04-09 15:27:27 -07:00
committed by GitHub
parent 8d2220c274
commit 2adeb74aa2
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ extension VideoQualityExt on lk_models.VideoQuality {
extension ParticipantTrackPermissionExt on ParticipantTrackPermission {
lk_rtc.TrackPermission toPBType() => lk_rtc.TrackPermission(
participantSid: participantSid,
participantIdentity: participantIdentity,
allTracks: allTracksAllowed,
trackSids: allowedTrackSids,
);
+4 -4
View File
@@ -150,18 +150,18 @@ class RTCIceServer {
@immutable
class ParticipantTrackPermission {
/// The participant id this permission applies to.
final String participantSid;
/// The participant identity this permission applies to.
final String participantIdentity;
/// If set to true, the target participant can subscribe to all tracks from the local participant.
/// Takes precedence over [allowedTrackSids].
final bool allTracksAllowed;
/// The list of track ids that the target participant can subscribe to.
final List<String> allowedTrackSids;
final List<String>? allowedTrackSids;
const ParticipantTrackPermission(
this.participantSid,
this.participantIdentity,
this.allTracksAllowed,
this.allowedTrackSids,
);