mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 17:45:40 +00:00
don't return video/rtx to client (#3142)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user