Reject migration if codec mismatch with published tracks (#2225)

* Reject migrated/published track mismatch codec with track info

* Check potential codecs

* Issue full connect if mismatch

* fix codec finding
This commit is contained in:
cnderrauber
2023-11-06 21:11:39 +08:00
committed by GitHub
parent 12a9d74acb
commit 302facc60d
5 changed files with 48 additions and 14 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ func TestMuteSetting(t *testing.T) {
Muted: true,
})
_, ti := p.getPendingTrack("cid", livekit.TrackType_AUDIO)
_, ti, _ := p.getPendingTrack("cid", livekit.TrackType_AUDIO)
require.NotNil(t, ti)
require.True(t, ti.Muted)
})