don't return video/rtx to client (#3142)

This commit is contained in:
cnderrauber authored and GitHub committed 2024-10-26 22:29:04 +08:00
1 parent 49b75e94a6
commit 526985f109
1 file changed
+8 -1
+8 -1
View File
@@ -2807,7 +2807,14 @@ func (p *ParticipantImpl) setupEnabledCodecs(publishEnabledCodecs []*livekit.Cod
}
func (p *ParticipantImpl) GetEnabledPublishCodecs() []*livekit.Codec {
return p.enabledPublishCodecs
codecs := make([]*livekit.Codec, 0, len(p.enabledPublishCodecs))
for _, c := range p.enabledPublishCodecs {
if c.Mime == "video/rtx" {
continue
}
codecs = append(codecs, c)
}
return codecs
}
func (p *ParticipantImpl) UpdateAudioTrack(update *livekit.UpdateLocalAudioTrack) error {