Use participantIdentity instead of Sid for track permissions. (#265)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user