There was an error while loading. Please reload this page.
1 parent 9fb6b4d commit bda4a66Copy full SHA for bda4a66
1 file changed
livekit/src/room/participant/local_participant.rs
@@ -232,14 +232,16 @@ impl LocalParticipant {
232
track: LocalTrack,
233
options: TrackPublishOptions,
234
) -> RoomResult<LocalTrackPublication> {
235
+ let disable_red = self.local.encryption_type != EncryptionType::None || !options.red;
236
+
237
let mut req = proto::AddTrackRequest {
238
cid: track.rtc_track().id(),
239
name: track.name(),
240
r#type: proto::TrackType::from(track.kind()) as i32,
241
muted: track.is_muted(),
242
source: proto::TrackSource::from(options.source) as i32,
243
disable_dtx: !options.dtx,
- disable_red: !options.red,
244
+ disable_red,
245
encryption: proto::encryption::Type::from(self.local.encryption_type) as i32,
246
stream: options.stream.clone(),
247
..Default::default()
0 commit comments