Transport refactor (#907)

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* Clean up

* fix tests

* debug logs

* Remove comments

* Fix data channel creation on migration and clean up unused stuff

* log offer/answer send/receive
This commit is contained in:
Raja Subramanian
2022-08-12 11:20:54 +05:30
committed by GitHub
parent a611fe017a
commit 641f8d4519
8 changed files with 1138 additions and 805 deletions
+2 -2
View File
@@ -304,7 +304,7 @@ func TestFilteringCandidates(t *testing.T) {
// should not filter out UDP candidates if TCP is not preferred
offer = *transport.pc.LocalDescription()
filteredOffer := transport.FilterCandidates(offer)
filteredOffer := transport.filterCandidates(offer)
require.EqualValues(t, offer.SDP, filteredOffer.SDP)
parsed, err := offer.Unmarshal()
@@ -382,7 +382,7 @@ func TestFilteringCandidates(t *testing.T) {
require.Equal(t, 2, tcp)
transport.SetPreferTCP(true)
filteredOffer = transport.FilterCandidates(offer)
filteredOffer = transport.filterCandidates(offer)
parsed, err = filteredOffer.Unmarshal()
require.NoError(t, err)
udp, tcp = getNumTransportTypeCandidates(parsed)