Skip to content

Commit 9cba54c

Browse files
maxhawkinsSean-Der
authored andcommitted
Upgrade to pions/sdp v2
Relates to #417
1 parent 6567fca commit 9cba54c

8 files changed

+11
-11
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/pions/rtcp v1.0.0
77
github.com/pions/rtp v1.0.0
88
github.com/pions/sctp v1.3.1
9-
github.com/pions/sdp v1.3.0
9+
github.com/pions/sdp/v2 v2.0.0
1010
github.com/pions/srtp v1.0.3
1111
github.com/pions/stun v0.2.0
1212
github.com/pions/transport v0.1.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ github.com/pions/rtp v1.0.0/go.mod h1:GDIt4UYlSz7za4vfaLqihGJJ+yLvgPshnqrF/lm3vc
3232
github.com/pions/sctp v1.3.0/go.mod h1:GZTG/xApE7wdUFEQq2Rmzgxl/+YaB/L1k8xUl1D5bmo=
3333
github.com/pions/sctp v1.3.1 h1:V5cRHMt+G9ufc44ITZvcEj7/nUyDukkB3Qr08TT29k4=
3434
github.com/pions/sctp v1.3.1/go.mod h1:GZTG/xApE7wdUFEQq2Rmzgxl/+YaB/L1k8xUl1D5bmo=
35-
github.com/pions/sdp v1.3.0 h1:HIv6ZvdzRPq+H4T8EV8K9pZ4EGnYOr14HFZ9Rksh6/0=
36-
github.com/pions/sdp v1.3.0/go.mod h1:moNMmnVSlx8rBBb39U9t0Rdr7xvMlqiJjHlMESRad5k=
35+
github.com/pions/sdp/v2 v2.0.0 h1:tWh8ehKPtXTaFYF12sBAHqYmhV36Q7YTmm3O6ycNa6M=
36+
github.com/pions/sdp/v2 v2.0.0/go.mod h1:KGRBcHfpkgJXjrzKJz2wj/Jf1KWnsHdoIiqtayQ5QmE=
3737
github.com/pions/srtp v1.0.3 h1:0rlg7yUHQblFA1e451mhx50IkA7+e48ja5K8mljyMYY=
3838
github.com/pions/srtp v1.0.3/go.mod h1:egXe0STDyQDXLm7hjOMzuk7rkAhJ1SHOx+tTgtw/cQs=
3939
github.com/pions/stun v0.2.0 h1:spIzpfkEg6HV+2iIo6qeOsAjtadZKzbXbrd2e9ZCCcs=

icecandidate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"net"
77

8-
"github.com/pions/sdp"
8+
"github.com/pions/sdp/v2"
99
"github.com/pions/webrtc/pkg/ice"
1010
)
1111

icecandidate_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net"
55
"testing"
66

7-
"github.com/pions/sdp"
7+
"github.com/pions/sdp/v2"
88
"github.com/pions/webrtc/pkg/ice"
99
"github.com/stretchr/testify/assert"
1010
)

mediaengine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/pions/rtp"
77
"github.com/pions/rtp/codecs"
8-
"github.com/pions/sdp"
8+
"github.com/pions/sdp/v2"
99
)
1010

1111
// PayloadTypes for the default codecs

mediaengine_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package webrtc
33
import (
44
"testing"
55

6-
"github.com/pions/sdp"
6+
"github.com/pions/sdp/v2"
77
"github.com/stretchr/testify/assert"
88
)
99

peerconnection.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"github.com/pions/rtcp"
1616
"github.com/pions/rtp"
17-
"github.com/pions/sdp"
17+
"github.com/pions/sdp/v2"
1818
"github.com/pions/webrtc/pkg/ice"
1919
"github.com/pions/webrtc/pkg/logging"
2020
"github.com/pions/webrtc/pkg/rtcerr"
@@ -1428,8 +1428,8 @@ func (pc *PeerConnection) addRTPMediaSection(d *sdp.SessionDescription, codecTyp
14281428
WithValueAttribute(sdp.AttrKeyConnectionSetup, dtlsRole.String()). // TODO: Support other connection types
14291429
WithValueAttribute(sdp.AttrKeyMID, midValue).
14301430
WithICECredentials(iceParams.UsernameFragment, iceParams.Password).
1431-
WithPropertyAttribute(sdp.AttrKeyRtcpMux). // TODO: support RTCP fallback
1432-
WithPropertyAttribute(sdp.AttrKeyRtcpRsize) // TODO: Support Reduced-Size RTCP?
1431+
WithPropertyAttribute(sdp.AttrKeyRTCPMux). // TODO: support RTCP fallback
1432+
WithPropertyAttribute(sdp.AttrKeyRTCPRsize) // TODO: Support Reduced-Size RTCP?
14331433

14341434
for _, codec := range pc.api.mediaEngine.getCodecsByKind(codecType) {
14351435
media.WithCodec(codec.PayloadType, codec.Name, codec.ClockRate, codec.Channels, codec.SDPFmtpLine)

sessiondescription.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package webrtc
22

33
import (
4-
"github.com/pions/sdp"
4+
"github.com/pions/sdp/v2"
55
)
66

77
// SessionDescription is used to expose local and remote session descriptions.

0 commit comments

Comments
 (0)