[bug] `AudioPublishOptions.red` is inverted: the default `red: true` sends `disableRed: true`, disabling RED for every audio publish
Los mantenedores suelen responder en 2 días
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
AudioPublishOptions.red (default true, documented as "red (Redundant Audio Data)") is passed into AddTrackRequest.disableRed without negation, so every audio publish with default options disables RED:
// lib/src/participant/local.dart
disableDtx: !publishOptions.dtx, // negated — correct
disableRed: room.e2eeManager != null ? true : publishOptions.red ?? true, // not negated
The JS SDK negates it (src/room/participant/LocalParticipant.ts):
disableRed: this.isE2EEEnabled || !(opts.red ?? true),
Evidence:
- Introduced by 6323ff7 (#453, 2024-01-23); the inverted line is that commit's only change to
lib/src/participant/local.dart. Before it the field was never set, and the protobuf default (false) left RED enabled — so RED has been off for Flutter publishers since v2.0.0. - The line is identical in 2.3.0–2.13.0, the v2.13.2 tag, and current main (checked 2026-10-30).
- The docs recommend RED enabled and document
red: falseas the opt-out: "LiveKit recommends enabling this feature because audio glitches are so distracting that the tradeoff is almost always worth it" — https://docs.livekit.io/transport/media/advanced/ - The E2EE force-disable branch matches the JS SDK; only the non-E2EE branch is inverted.
To Reproduce
Publish a microphone track with default options: the AddTrackRequest carries disableRed: true. Publish with red: false: it carries disableRed: false — inverted.
Expected behavior
red: true (the default) → disableRed: false. Proposed fix:
disableRed: room.e2eeManager != null || !(publishOptions.red ?? true),
Release-note caveat: apps that noticed and set red: false to force RED on will flip behavior when this is fixed.
Platform information
- Flutter version: 3.47.6
- Plugin version: 2.13.0
- Flutter target OS: Web — but the field is set in shared Dart, so all platforms are affected
- Lenguaje dominante
- Dart
- Estrellas
- 421
- Forks
- 260
- Merge medio
- 2 d 10 h
- PR fusionados (30 d)
- 22
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de livekit/client-sdk-flutter
-
`jwtPayload.roomConfiguration` returns null fields for tokens from LiveKit server SDKsPosiblemente ocupada @RaphaelFakhri la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
livekit/client-sdk-flutter#1243 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
livekit/client-sdk-flutter#1265 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
livekit/client-sdk-flutter#1227 ·
Los mantenedores suelen responder en 2 días
-
Inbound data packets never delivered while media flows normally (2.13.0, LiveKit Cloud 1.13.7)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
livekit/client-sdk-flutter#1221 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
livekit/client-sdk-flutter#1219 · 1 reacción ·
Los mantenedores suelen responder en 2 días
Todos los issues de livekit/client-sdk-flutter
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
lollipopkit/flutter_server_box#1851 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
type:feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
mikejr83/rc-soar-score#724 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ccch1mneyyy/dsh-Go#381 ·
Los mantenedores suelen responder en 1 día
-
Broken links in the docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
letsar/flutter_slidable#563 ·
Los mantenedores suelen responder en 1 día
-
bot-found bug priority: P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
madenvel/KalinkaPlayer#498 ·