mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 11:32:19 +08:00
Make RTPTransceiver Stopped an atomic
Add an accessor to make getting value easy. Also add TestPeerConnection_SkipStoppedTransceiver. This commit also cleans up RTPTransceiver creation. We used a helper function, when we should have just used the provide constructor
This commit is contained in:
@@ -375,8 +375,7 @@ func TestPopulateSDP(t *testing.T) {
|
||||
assert.NoError(t, me.RegisterDefaultCodecs())
|
||||
api := NewAPI(WithMediaEngine(me))
|
||||
|
||||
tr := &RTPTransceiver{kind: RTPCodecTypeVideo, api: api, codecs: me.videoCodecs}
|
||||
tr.setDirection(RTPTransceiverDirectionRecvonly)
|
||||
tr := newRTPTransceiver(nil, nil, RTPTransceiverDirectionRecvonly, RTPCodecTypeVideo, api)
|
||||
ridMap := map[string]string{
|
||||
"ridkey": "some",
|
||||
}
|
||||
|
Reference in New Issue
Block a user