Simulcast audio fixes (#3925)

* Simulcast audio fixes

* clean up
This commit is contained in:
Raja Subramanian
2025-09-14 09:41:40 +05:30
committed by GitHub
parent 9f0ab8706f
commit 6489237e33
11 changed files with 70 additions and 57 deletions
+8
View File
@@ -192,3 +192,11 @@ func ChunkProtoBatch[T proto.Message](batch []T, target int) [][]T {
}
return chunks
}
func IsRedEnabled(ti *livekit.TrackInfo) bool {
if len(ti.Codecs) != 0 && ti.Codecs[0].MimeType != "" {
return mime.IsMimeTypeStringRED(ti.Codecs[0].MimeType)
}
return !ti.GetDisableRed()
}