Skip to content

Commit 2162bf0

Browse files
committed
Merge remote tag 'v1.9.8' into openvidu/main
# Conflicts: # .github/workflows/buildtest.yaml # CHANGELOG.md # go.mod # go.sum # pkg/rtc/config.go # pkg/rtc/mediaengine.go # pkg/rtc/mediatrack.go # pkg/rtc/mediatracksubscriptions.go # pkg/rtc/participant.go # pkg/rtc/participant_internal_test.go # pkg/rtc/participant_sdp.go # pkg/rtc/participant_signal.go # pkg/rtc/room.go # pkg/rtc/signalling/interfaces.go # pkg/rtc/signalling/signalhandler.go # pkg/rtc/signalling/signalling.go # pkg/rtc/signalling/signallingunimplemented.go # pkg/rtc/subscriptionmanager.go # pkg/rtc/transport.go # pkg/rtc/transport/handler.go # pkg/rtc/transport/transportfakes/fake_handler.go # pkg/rtc/transport_test.go # pkg/rtc/transportmanager.go # pkg/rtc/types/interfaces.go # pkg/rtc/types/typesfakes/fake_local_participant.go # pkg/rtc/types/typesfakes/fake_participant.go # pkg/rtc/utils.go # pkg/rtc/wrappedreceiver.go # pkg/service/errors.go # pkg/service/roommanager.go # pkg/service/roommanager_service.go # pkg/service/rtcservice.go # pkg/service/utils.go # pkg/service/wire_gen.go # pkg/sfu/buffer/buffer.go # pkg/sfu/buffer/dependencydescriptorparser.go # pkg/sfu/buffer/videolayerutils.go # pkg/sfu/downtrack.go # pkg/sfu/forwarder.go # pkg/sfu/forwarder_test.go # pkg/sfu/utils/wraparound.go # pkg/telemetry/prometheus/packets.go # pkg/telemetry/prometheus/rooms.go # pkg/telemetry/signalanddatastats.go # test/client/client.go # test/scenarios.go # test/singlenode_test.go # version/version.go
1 parent a04b9e8 commit 2162bf0

File tree

158 files changed

+13378
-5319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+13378
-5319
lines changed

.github/workflows/buildtest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Go
3636
uses: actions/setup-go@v5
3737
with:
38-
go-version: '^1.24'
38+
go-version: "^1.24"
3939

4040
- name: Set up gotestfmt
4141
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1
@@ -45,7 +45,7 @@ jobs:
4545
go get github.com/sasha-s/go-deadlock
4646
grep -rl sync.Mutex ./pkg | xargs sed -i 's/sync\.Mutex/deadlock\.Mutex/g'
4747
grep -rl sync.RWMutex ./pkg | xargs sed -i 's/sync\.RWMutex/deadlock\.RWMutex/g'
48-
go install golang.org/x/tools/cmd/goimports
48+
go install golang.org/x/tools/cmd/goimports@latest
4949
grep -rl deadlock.Mutex ./pkg | xargs goimports -w
5050
grep -rl deadlock.RWMutex ./pkg | xargs goimports -w
5151
go mod tidy

CHANGELOG.md

Lines changed: 1041 additions & 881 deletions
Large diffs are not rendered by default.

config-sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ rtc:
6565
# this is useful for cloud environments such as AWS & Google where hosts have an internal IP
6666
# that maps to an external one
6767
use_external_ip: true
68+
# # there are cases where the public IP determined via STUN is not the correct one
69+
# # in such cases, use this setting to set the public IP of the node
70+
# # use_external_ip takes precedence, for this to take effect, set use_external_ip to false
71+
# node_ip: <external-ip-of-node>
6872
# # when set, LiveKit will attempt to use a UDP mux so all UDP traffic goes through
6973
# # listed port(s). To maximize system performance, we recommend using a range of ports
7074
# # greater or equal to the number of vCPUs on the machine.
@@ -287,6 +291,9 @@ keys:
287291
# # priority used for selection of node when multiple are available
288292
# # default: random. valid values: random, sysload, cpuload, rooms, clients, tracks, bytespersec
289293
# sort_by: sysload
294+
# # algorithm used to govern selecting from sorted nodes
295+
# # default: lowest. valid values: lowest, twochoice
296+
# algorithm: lowest
290297
# # used in sysload and regionaware
291298
# # do not assign room to node if load per CPU exceeds sysload_limit
292299
# sysload_limit: 0.7

go.mod

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/elliotchance/orderedmap/v2 v2.7.0
1818
github.com/florianl/go-tc v0.4.5
1919
github.com/frostbyte73/core v0.1.1
20-
github.com/gammazero/deque v1.1.0
20+
github.com/gammazero/deque v1.2.0
2121
github.com/gammazero/workerpool v1.1.3
2222
github.com/google/uuid v1.6.0
2323
github.com/google/wire v0.6.0
@@ -27,63 +27,65 @@ require (
2727
github.com/jellydator/ttlcache/v3 v3.4.0
2828
github.com/jxskiss/base62 v1.1.0
2929
github.com/livekit/mageutil v0.0.0-20250511045019-0f1ff63f7731
30-
github.com/livekit/mediatransportutil v0.0.0-20250825135402-7bc31f107ade
31-
github.com/livekit/protocol v1.41.1-0.20250902155548-e46b3f58f6a7
32-
github.com/livekit/psrpc v0.6.1-0.20250828235857-3fafdbbcbe55
30+
github.com/livekit/mediatransportutil v0.0.0-20251204091721-6b6e9a44e81f
31+
github.com/livekit/protocol v1.43.5-0.20251208162321-aa4dc2f24b2a
32+
github.com/livekit/psrpc v0.7.1
3333
github.com/mackerelio/go-osstat v0.2.6
3434
github.com/magefile/mage v1.15.0
35-
github.com/maxbrunsfeld/counterfeiter/v6 v6.11.3
35+
github.com/maxbrunsfeld/counterfeiter/v6 v6.12.0
3636
github.com/mitchellh/go-homedir v1.1.0
3737
github.com/olekukonko/tablewriter v0.0.5
3838
github.com/ory/dockertest/v3 v3.12.0
3939
github.com/pion/datachannel v1.5.10
40-
github.com/pion/dtls/v3 v3.0.7
41-
github.com/pion/ice/v4 v4.0.10
42-
github.com/pion/interceptor v0.1.40
43-
github.com/pion/rtcp v1.2.15
44-
github.com/pion/rtp v1.8.21
45-
github.com/pion/sctp v1.8.39
40+
github.com/pion/dtls/v3 v3.0.8
41+
github.com/pion/ice/v4 v4.0.13
42+
github.com/pion/interceptor v0.1.42
43+
github.com/pion/rtcp v1.2.16
44+
github.com/pion/rtp v1.8.26
45+
github.com/pion/sctp v1.8.41
4646
github.com/pion/sdp/v3 v3.0.16
47-
github.com/pion/transport/v3 v3.0.7
48-
github.com/pion/turn/v4 v4.1.1
49-
github.com/pion/webrtc/v4 v4.1.5-0.20250828044558-c376d0edf977
47+
github.com/pion/transport/v3 v3.1.1
48+
github.com/pion/turn/v4 v4.1.3
49+
github.com/pion/webrtc/v4 v4.1.8
5050
github.com/pkg/errors v0.9.1
5151
github.com/prometheus/client_golang v1.23.0
52-
github.com/redis/go-redis/v9 v9.12.1
52+
github.com/redis/go-redis/v9 v9.17.2
5353
github.com/rs/cors v1.11.1
5454
github.com/stretchr/testify v1.11.1
5555
github.com/thoas/go-funk v0.9.3
5656
github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80
5757
github.com/twitchtv/twirp v8.1.3+incompatible
58-
github.com/ua-parser/uap-go v0.0.0-20250326155420-f7f5a2f9f5bc
58+
github.com/ua-parser/uap-go v0.0.0-20251207011819-db9adb27a0b8
5959
github.com/urfave/negroni/v3 v3.1.1
6060
go.mongodb.org/mongo-driver v1.13.1
6161
go.uber.org/atomic v1.11.0
6262
go.uber.org/multierr v1.11.0
63-
go.uber.org/zap v1.27.0
64-
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
65-
golang.org/x/mod v0.27.0
66-
golang.org/x/sync v0.16.0
67-
google.golang.org/protobuf v1.36.8
63+
go.uber.org/zap v1.27.1
64+
golang.org/x/exp v0.0.0-20251125195548-87e1e737ad39
65+
golang.org/x/mod v0.30.0
66+
golang.org/x/sync v0.19.0
67+
google.golang.org/protobuf v1.36.10
6868
gopkg.in/yaml.v3 v3.0.1
6969
)
7070

7171
require (
7272
github.com/go-logr/stdr v1.2.2 // indirect
7373
github.com/go-viper/mapstructure/v2 v2.1.0 // indirect
7474
github.com/golang/snappy v0.0.1 // indirect
75+
github.com/hashicorp/golang-lru v1.0.2 // indirect
7576
github.com/moby/sys/user v0.3.0 // indirect
76-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
77-
go.opentelemetry.io/otel v1.37.0 // indirect
78-
go.opentelemetry.io/otel/metric v1.37.0 // indirect
79-
go.opentelemetry.io/otel/trace v1.37.0 // indirect
77+
github.com/nyaruka/phonenumbers v1.6.5 // indirect
78+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
79+
go.opentelemetry.io/otel v1.38.0 // indirect
80+
go.opentelemetry.io/otel/metric v1.38.0 // indirect
81+
go.opentelemetry.io/otel/trace v1.38.0 // indirect
8082
)
8183

8284
require (
83-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.8-20250717185734-6c6e0d3c608e.1 // indirect
84-
buf.build/go/protovalidate v0.14.0 // indirect
85+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.10-20250912141014-52f32327d4b0.1 // indirect
86+
buf.build/go/protovalidate v1.0.1 // indirect
8587
buf.build/go/protoyaml v0.6.0 // indirect
86-
cel.dev/expr v0.24.0 // indirect
88+
cel.dev/expr v0.25.1 // indirect
8789
dario.cat/mergo v1.0.0 // indirect
8890
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
8991
github.com/Microsoft/go-winio v0.6.2 // indirect
@@ -110,9 +112,8 @@ require (
110112
github.com/google/subcommands v1.2.0 // indirect
111113
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
112114
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
113-
github.com/hashicorp/golang-lru v1.0.2 // indirect
114115
github.com/josharian/native v1.1.0 // indirect
115-
github.com/klauspost/compress v1.18.0 // indirect
116+
github.com/klauspost/compress v1.18.2 // indirect
116117
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
117118
github.com/lithammer/shortuuid/v4 v4.2.0 // indirect
118119
github.com/mattn/go-runewidth v0.0.9 // indirect
@@ -122,17 +123,17 @@ require (
122123
github.com/moby/term v0.5.0 // indirect
123124
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect
124125
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
125-
github.com/nats-io/nats.go v1.45.0 // indirect
126-
github.com/nats-io/nkeys v0.4.11 // indirect
126+
github.com/nats-io/nats.go v1.47.0 // indirect
127+
github.com/nats-io/nkeys v0.4.12 // indirect
127128
github.com/nats-io/nuid v1.0.1 // indirect
128129
github.com/opencontainers/go-digest v1.0.0 // indirect
129130
github.com/opencontainers/image-spec v1.1.0 // indirect
130131
github.com/opencontainers/runc v1.2.3 // indirect
131132
github.com/pion/logging v0.2.4 // indirect
132-
github.com/pion/mdns/v2 v2.0.7 // indirect
133+
github.com/pion/mdns/v2 v2.1.0 // indirect
133134
github.com/pion/randutil v0.1.0 // indirect
134-
github.com/pion/srtp/v3 v3.0.7 // indirect
135-
github.com/pion/stun/v3 v3.0.0 // indirect
135+
github.com/pion/srtp/v3 v3.0.9 // indirect
136+
github.com/pion/stun/v3 v3.0.2 // indirect
136137
github.com/pmezard/go-difflib v1.0.0 // indirect
137138
github.com/prometheus/client_model v0.6.2 // indirect
138139
github.com/prometheus/common v0.65.0 // indirect
@@ -151,13 +152,13 @@ require (
151152
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
152153
github.com/zeebo/xxh3 v1.0.2 // indirect
153154
go.uber.org/zap/exp v0.3.0 // indirect
154-
golang.org/x/crypto v0.41.0 // indirect
155-
golang.org/x/net v0.43.0 // indirect
156-
golang.org/x/sys v0.35.0 // indirect
157-
golang.org/x/text v0.28.0 // indirect
158-
golang.org/x/tools v0.36.0 // indirect
159-
google.golang.org/genproto/googleapis/api v0.0.0-20250826171959-ef028d996bc1 // indirect
160-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250826171959-ef028d996bc1 // indirect
161-
google.golang.org/grpc v1.75.0
155+
golang.org/x/crypto v0.46.0 // indirect
156+
golang.org/x/net v0.48.0 // indirect
157+
golang.org/x/sys v0.39.0 // indirect
158+
golang.org/x/text v0.32.0 // indirect
159+
golang.org/x/tools v0.39.0 // indirect
160+
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
161+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
162+
google.golang.org/grpc v1.77.0
162163
gopkg.in/yaml.v2 v2.4.0 // indirect
163164
)

0 commit comments

Comments
 (0)