File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' livekit-client ' : patch
3
+ ---
4
+
5
+ Disable red by default for stereo track
Original file line number Diff line number Diff line change @@ -439,7 +439,13 @@ export default class LocalParticipant extends Participant {
439
439
`Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work.` ,
440
440
) ;
441
441
}
442
+ if ( options . red === undefined ) {
443
+ log . info (
444
+ `Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work.` ,
445
+ ) ;
446
+ }
442
447
options . dtx ??= false ;
448
+ options . red ??= false ;
443
449
}
444
450
const opts : TrackPublishOptions = {
445
451
...this . roomOptions . publishDefaults ,
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ export interface TrackPublishDefaults {
28
28
audioBitrate ?: number ;
29
29
30
30
/**
31
- * dtx (Discontinuous Transmission of audio), defaults to true
31
+ * dtx (Discontinuous Transmission of audio), enabled by default for mono tracks.
32
32
*/
33
33
dtx ?: boolean ;
34
34
35
35
/**
36
- * red (Redundant Audio Data), defaults to true
36
+ * red (Redundant Audio Data), enabled by default for mono tracks.
37
37
*/
38
38
red ?: boolean ;
39
39
You can’t perform that action at this time.
0 commit comments