Use AddTransceiverFromKind

Move from AddTransceiver to AddTransceiverFromKind.
This commit is contained in:
Yuki Igarashi
2020-04-05 01:06:28 +09:00
committed by Sean DuBois
parent 787b2c0a62
commit dba6716b39
5 changed files with 21 additions and 21 deletions

View File

@@ -475,16 +475,16 @@ func TestOneAttrKeyConnectionSetupPerMediaDescriptionInSDP(t *testing.T) {
pc, err := NewPeerConnection(Configuration{})
assert.NoError(t, err)
_, err = pc.AddTransceiver(RTPCodecTypeVideo)
_, err = pc.AddTransceiverFromKind(RTPCodecTypeVideo)
assert.NoError(t, err)
_, err = pc.AddTransceiver(RTPCodecTypeAudio)
_, err = pc.AddTransceiverFromKind(RTPCodecTypeAudio)
assert.NoError(t, err)
_, err = pc.AddTransceiver(RTPCodecTypeAudio)
_, err = pc.AddTransceiverFromKind(RTPCodecTypeAudio)
assert.NoError(t, err)
_, err = pc.AddTransceiver(RTPCodecTypeVideo)
_, err = pc.AddTransceiverFromKind(RTPCodecTypeVideo)
assert.NoError(t, err)
sdp, err := pc.CreateOffer(nil)