mirror of
https://github.com/livekit/livekit.git
synced 2026-05-20 06:35:56 +00:00
8b604df32a
* Set FEC enabled properly in connection stats module. With RED, the FEC indication is in primary codec. Also, clean up some bits that were not necessary (TrackInfoAvailable is not needed) TODO: There are still a couple of things to figure out - If codec is RED, Opus is added as second codec synthetically using https://github.com/livekit/livekit/blob/33098337fc17705bbdb3283c7a7034aa6b2f3745/pkg/rtc/mediaengine.go#L31 which hard codecs FEC enabled. Ideally, we should get the primary codec parameters from SDP offer. - The WebRTCReceiver does not have information about primary codec. For now, just setting FEC to true when RED is enabled. It is okay as it just affects when we declare quality drops, but ideally the primary codec should be retrieved from SDP offer. * clean up and comment * full prop check