mirror of
https://github.com/livekit/livekit.git
synced 2026-03-31 19:45:43 +00:00
When migrating muted track, need to set potential codecs. For audio, there may not be `simulcast_codecs` in `AddTrack`. Hence when migrating a muted track, the potential codecs are not set. That results in no receivers in relay up track (because all this could happen before the audio track is unmuted). So, look at MimeType in TrackInfo (this will be set in OnTrack) and use that as potential codec.