Skip to content

Commit 63f7c83

Browse files
authored
Update protocol to get mapped SDP. (#770)
This SDK doe snot use it, but helper method signature has changed and cloud needs the new helper methods.
1 parent 0af59ab commit 63f7c83

File tree

6 files changed

+81
-81
lines changed

6 files changed

+81
-81
lines changed

engine.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func (e *RTCEngine) createPublisherPCLocked(configuration webrtc.Configuration)
415415
e.hasPublish.Store(true)
416416
if err := e.signalTransport.SendMessage(
417417
e.signalling.SignalSdpOffer(
418-
protosignalling.ToProtoSessionDescription(offer, 0),
418+
protosignalling.ToProtoSessionDescription(offer, 0, nil),
419419
),
420420
); err != nil {
421421
e.log.Errorw("could not send offer for publisher pc", err)
@@ -829,7 +829,7 @@ func (e *RTCEngine) createSubscriberPCAnswerAndSend() error {
829829
e.log.Debugw("sending answer for subscriber", "answer", answer)
830830
if err := e.signalTransport.SendMessage(
831831
e.signalling.SignalSdpAnswer(
832-
protosignalling.ToProtoSessionDescription(answer, 0),
832+
protosignalling.ToProtoSessionDescription(answer, 0, nil),
833833
),
834834
); err != nil {
835835
e.log.Errorw("could not send answer for subscriber pc", err)
@@ -1269,7 +1269,7 @@ func (e *RTCEngine) OnReconnectResponse(res *livekit.ReconnectResponse) error {
12691269
return nil
12701270
}
12711271

1272-
func (e *RTCEngine) OnAnswer(sd webrtc.SessionDescription, answerId uint32) {
1272+
func (e *RTCEngine) OnAnswer(sd webrtc.SessionDescription, answerId uint32, _midToTrackID map[string]string) {
12731273
if e.closed.Load() {
12741274
e.log.Debugw("ignoring SDP answer after closed")
12751275
return
@@ -1282,7 +1282,7 @@ func (e *RTCEngine) OnAnswer(sd webrtc.SessionDescription, answerId uint32) {
12821282
}
12831283
}
12841284

1285-
func (e *RTCEngine) OnOffer(sd webrtc.SessionDescription, offerId uint32) {
1285+
func (e *RTCEngine) OnOffer(sd webrtc.SessionDescription, offerId uint32, _midToTrackID map[string]string) {
12861286
if e.closed.Load() {
12871287
e.log.Debugw("ignoring SDP offer after closed")
12881288
return

go.mod

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ require (
1010
github.com/livekit/mageutil v0.0.0-20250511045019-0f1ff63f7731
1111
github.com/livekit/media-sdk v0.0.0-20250927154350-bd99739b439b
1212
github.com/livekit/mediatransportutil v0.0.0-20250519131108-fb90f5acfded
13-
github.com/livekit/protocol v1.42.0
13+
github.com/livekit/protocol v1.42.2-0.20251016024155-8cf58ff15ac6
1414
github.com/magefile/mage v1.15.0
1515
github.com/pion/dtls/v3 v3.0.7
1616
github.com/pion/interceptor v0.1.41
1717
github.com/pion/rtcp v1.2.15
18-
github.com/pion/rtp v1.8.22
19-
github.com/pion/sdp/v3 v3.0.15
20-
github.com/pion/webrtc/v4 v4.1.5-0.20250828044558-c376d0edf977
18+
github.com/pion/rtp v1.8.23
19+
github.com/pion/sdp/v3 v3.0.16
20+
github.com/pion/webrtc/v4 v4.1.6
2121
github.com/stretchr/testify v1.11.1
2222
github.com/twitchtv/twirp v8.1.3+incompatible
2323
go.uber.org/atomic v1.11.0
24-
golang.org/x/crypto v0.41.0
25-
golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b
26-
google.golang.org/protobuf v1.36.8
24+
golang.org/x/crypto v0.43.0
25+
golang.org/x/exp v0.0.0-20251009144603-d2f985daa21b
26+
google.golang.org/protobuf v1.36.10
2727
)
2828

29-
require golang.org/x/mod v0.27.0
29+
require golang.org/x/mod v0.29.0
3030

3131
require (
3232
github.com/maxbrunsfeld/counterfeiter/v6 v6.11.3 // indirect
33-
golang.org/x/tools v0.36.0 // indirect
33+
golang.org/x/tools v0.38.0 // indirect
3434
)
3535

3636
require (
37-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.8-20250717185734-6c6e0d3c608e.1 // indirect
38-
buf.build/go/protovalidate v0.14.0 // indirect
37+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.10-20250912141014-52f32327d4b0.1 // indirect
38+
buf.build/go/protovalidate v1.0.0 // indirect
3939
buf.build/go/protoyaml v0.6.0 // indirect
4040
cel.dev/expr v0.24.0 // indirect
4141
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
@@ -50,7 +50,7 @@ require (
5050
github.com/gammazero/deque v1.1.0
5151
github.com/go-jose/go-jose/v3 v3.0.4 // indirect
5252
github.com/go-logr/logr v1.4.3 // indirect
53-
github.com/google/cel-go v0.26.0 // indirect
53+
github.com/google/cel-go v0.26.1 // indirect
5454
github.com/jfreymuth/oggvorbis v1.0.5 // indirect
5555
github.com/jfreymuth/vorbis v1.0.2 // indirect
5656
github.com/joho/godotenv v1.5.1
@@ -59,7 +59,7 @@ require (
5959
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
6060
github.com/lithammer/shortuuid/v4 v4.2.0 // indirect
6161
github.com/livekit/psrpc v0.7.0 // indirect
62-
github.com/nats-io/nats.go v1.45.0 // indirect
62+
github.com/nats-io/nats.go v1.47.0 // indirect
6363
github.com/nats-io/nkeys v0.4.11 // indirect
6464
github.com/nats-io/nuid v1.0.1 // indirect
6565
github.com/opencontainers/runc v1.1.14 // indirect
@@ -68,27 +68,27 @@ require (
6868
github.com/pion/logging v0.2.4 // indirect
6969
github.com/pion/mdns/v2 v2.0.7 // indirect
7070
github.com/pion/randutil v0.1.0 // indirect
71-
github.com/pion/sctp v1.8.39 // indirect
72-
github.com/pion/srtp/v3 v3.0.7 // indirect
71+
github.com/pion/sctp v1.8.40 // indirect
72+
github.com/pion/srtp/v3 v3.0.8 // indirect
7373
github.com/pion/stun/v3 v3.0.0 // indirect
74-
github.com/pion/transport/v3 v3.0.7 // indirect
74+
github.com/pion/transport/v3 v3.0.8 // indirect
7575
github.com/pion/turn/v4 v4.1.1 // indirect
7676
github.com/pmezard/go-difflib v1.0.0 // indirect
7777
github.com/puzpuzpuz/xsync/v3 v3.5.1 // indirect
78-
github.com/redis/go-redis/v9 v9.12.1 // indirect
78+
github.com/redis/go-redis/v9 v9.14.0 // indirect
7979
github.com/stoewer/go-strcase v1.3.1 // indirect
8080
github.com/wlynxg/anet v0.0.5 // indirect
8181
github.com/zeebo/xxh3 v1.0.2 // indirect
8282
go.uber.org/multierr v1.11.0 // indirect
8383
go.uber.org/zap v1.27.0
8484
go.uber.org/zap/exp v0.3.0 // indirect
85-
golang.org/x/net v0.43.0 // indirect
86-
golang.org/x/sync v0.16.0 // indirect
87-
golang.org/x/sys v0.35.0 // indirect
88-
golang.org/x/text v0.28.0 // indirect
89-
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
90-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
91-
google.golang.org/grpc v1.75.0 // indirect
85+
golang.org/x/net v0.46.0 // indirect
86+
golang.org/x/sync v0.17.0 // indirect
87+
golang.org/x/sys v0.37.0 // indirect
88+
golang.org/x/text v0.30.0 // indirect
89+
google.golang.org/genproto/googleapis/api v0.0.0-20251014184007-4626949a642f // indirect
90+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251014184007-4626949a642f // indirect
91+
google.golang.org/grpc v1.76.0 // indirect
9292
gopkg.in/hraban/opus.v2 v2.0.0-20230925203106-0188a62cb302 // indirect
9393
gopkg.in/yaml.v3 v3.0.1 // indirect
9494
)

0 commit comments

Comments
 (0)