mirror of
https://github.com/pion/webrtc.git
synced 2025-10-04 14:53:05 +08:00
NewAPI: register default codecs and interceptors
This commit is contained in:

committed by
Sean DuBois

parent
2fcd8a195b
commit
21c5a711d8
@@ -33,7 +33,7 @@ func Test_TrackLocalStatic_NoCodecIntersection(t *testing.T) {
|
||||
pc, err := NewPeerConnection(Configuration{})
|
||||
assert.NoError(t, err)
|
||||
|
||||
noCodecPC, err := NewAPI().NewPeerConnection(Configuration{})
|
||||
noCodecPC, err := NewAPI(WithMediaEngine(&MediaEngine{})).NewPeerConnection(Configuration{})
|
||||
assert.NoError(t, err)
|
||||
|
||||
_, err = pc.AddTrack(track)
|
||||
|
Reference in New Issue
Block a user