diff --git a/go.mod b/go.mod index d528b4d1..c6f8891e 100644 --- a/go.mod +++ b/go.mod @@ -20,8 +20,8 @@ require ( github.com/jellydator/ttlcache/v3 v3.3.0 github.com/jxskiss/base62 v1.1.0 github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 - github.com/livekit/mediatransportutil v0.0.0-20241125052448-0e9ef3242e3b - github.com/livekit/protocol v1.28.0 + github.com/livekit/mediatransportutil v0.0.0-20241128072814-c363618d4c98 + github.com/livekit/protocol v1.28.2-0.20241128072830-b738aedbd841 github.com/livekit/psrpc v0.6.1-0.20241018124827-1efff3d113a8 github.com/mackerelio/go-osstat v0.2.5 github.com/magefile/mage v1.15.0 @@ -29,21 +29,21 @@ require ( github.com/mitchellh/go-homedir v1.1.0 github.com/olekukonko/tablewriter v0.0.5 github.com/ory/dockertest/v3 v3.11.0 - github.com/pion/dtls/v2 v2.2.12 - github.com/pion/ice/v2 v2.3.37 + github.com/pion/dtls/v3 v3.0.4 + github.com/pion/ice/v4 v4.0.3 github.com/pion/interceptor v0.1.37 github.com/pion/rtcp v1.2.14 github.com/pion/rtp v1.8.9 - github.com/pion/sctp v1.8.33 + github.com/pion/sctp v1.8.34 github.com/pion/sdp/v3 v3.0.9 - github.com/pion/transport/v2 v2.2.10 - github.com/pion/turn/v2 v2.1.6 - github.com/pion/webrtc/v3 v3.3.4 + github.com/pion/transport/v3 v3.0.7 + github.com/pion/turn/v4 v4.0.0 + github.com/pion/webrtc/v4 v4.0.3 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.20.5 github.com/redis/go-redis/v9 v9.7.0 github.com/rs/cors v1.11.1 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/thoas/go-funk v0.9.3 github.com/twitchtv/twirp v8.1.3+incompatible github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 @@ -110,10 +110,10 @@ require ( github.com/opencontainers/runc v1.1.14 // indirect github.com/pion/datachannel v1.5.9 // indirect github.com/pion/logging v0.2.2 // indirect - github.com/pion/mdns v0.0.12 // indirect + github.com/pion/mdns/v2 v2.0.7 // indirect github.com/pion/randutil v0.1.0 // indirect - github.com/pion/srtp/v2 v2.0.20 // indirect - github.com/pion/stun v0.6.1 // indirect + github.com/pion/srtp/v3 v3.0.4 // indirect + github.com/pion/stun/v3 v3.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.55.0 // indirect diff --git a/go.sum b/go.sum index 1bc7851d..5582b3d1 100644 --- a/go.sum +++ b/go.sum @@ -104,7 +104,6 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3 github.com/google/subcommands v1.2.0 h1:vWQspBTo2nEqTUFita5/KeEWlUL8kQObDFbub/EN9oE= github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/wire v0.6.0 h1:HBkoIh4BdSxoyo9PveV8giw7ZsaBOvzWKfcg/6MrVwI= @@ -164,10 +163,10 @@ github.com/lithammer/shortuuid/v4 v4.0.0 h1:QRbbVkfgNippHOS8PXDkti4NaWeyYfcBTHtw github.com/lithammer/shortuuid/v4 v4.0.0/go.mod h1:Zs8puNcrvf2rV9rTH51ZLLcj7ZXqQI3lv67aw4KiB1Y= github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkDaKb5iXdynYrzB84ErPPO4LbRASk58= github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ= -github.com/livekit/mediatransportutil v0.0.0-20241125052448-0e9ef3242e3b h1:NRCk6PsP/Ge6A/LsyUuTej9iZFZsAPHOLwQcupZQSBw= -github.com/livekit/mediatransportutil v0.0.0-20241125052448-0e9ef3242e3b/go.mod h1:jwKUCmObuiEDH0iiuJHaGMXwRs3RjrB4G6qqgkr/5oE= -github.com/livekit/protocol v1.28.0 h1:629Eh1dyLGN3Y4VqraFI6NWyQ2Q7o8Kj5cHqi3F47S4= -github.com/livekit/protocol v1.28.0/go.mod h1:eYXfNUiUliCTgLsDKhhObicDypc1eNc6M0MOGI/z7SU= +github.com/livekit/mediatransportutil v0.0.0-20241128072814-c363618d4c98 h1:QA7DqIC/ZSsMj8HC0+zNfMMwssHbA0alZALK68r30LQ= +github.com/livekit/mediatransportutil v0.0.0-20241128072814-c363618d4c98/go.mod h1:WIVFAGzVZ7VMjPC5+nbSfwdFjWcbuLgx97KeNSUDTEo= +github.com/livekit/protocol v1.28.2-0.20241128072830-b738aedbd841 h1:69dSvfL6H6odFhL9q4s+RjDRDdfLY+WUUQ/Lz0av2Bs= +github.com/livekit/protocol v1.28.2-0.20241128072830-b738aedbd841/go.mod h1:mqXSWNHbENjxM0/HG25wZ7wgja/K9fA0PeQxi+MPmWw= github.com/livekit/psrpc v0.6.1-0.20241018124827-1efff3d113a8 h1:Ibh0LoFl5NW5a1KFJEE0eLxxz7dqqKmYTj/BfCb0PbY= github.com/livekit/psrpc v0.6.1-0.20241018124827-1efff3d113a8/go.mod h1:CQUBSPfYYAaevg1TNCc6/aYsa8DJH4jSRFdCeSZk5u0= github.com/mackerelio/go-osstat v0.2.5 h1:+MqTbZUhoIt4m8qzkVoXUJg1EuifwlAJSk4Yl2GXh+o= @@ -231,46 +230,36 @@ github.com/ory/dockertest/v3 v3.11.0 h1:OiHcxKAvSDUwsEVh2BjxQQc/5EHz9n0va9awCtNG github.com/ory/dockertest/v3 v3.11.0/go.mod h1:VIPxS1gwT9NpPOrfD3rACs8Y9Z7yhzO4SB194iUDnUI= github.com/pion/datachannel v1.5.9 h1:LpIWAOYPyDrXtU+BW7X0Yt/vGtYxtXQ8ql7dFfYUVZA= github.com/pion/datachannel v1.5.9/go.mod h1:kDUuk4CU4Uxp82NH4LQZbISULkX/HtzKa4P7ldf9izE= -github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s= -github.com/pion/dtls/v2 v2.2.12 h1:KP7H5/c1EiVAAKUmXyCzPiQe5+bCJrpOeKg/L05dunk= -github.com/pion/dtls/v2 v2.2.12/go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE= -github.com/pion/ice/v2 v2.3.37 h1:ObIdaNDu1rCo7hObhs34YSBcO7fjslJMZV0ux+uZWh0= -github.com/pion/ice/v2 v2.3.37/go.mod h1:mBF7lnigdqgtB+YHkaY/Y6s6tsyRyo4u4rPGRuOjUBQ= +github.com/pion/dtls/v3 v3.0.4 h1:44CZekewMzfrn9pmGrj5BNnTMDCFwr+6sLH+cCuLM7U= +github.com/pion/dtls/v3 v3.0.4/go.mod h1:R373CsjxWqNPf6MEkfdy3aSe9niZvL/JaKlGeFphtMg= +github.com/pion/ice/v4 v4.0.3 h1:9s5rI1WKzF5DRqhJ+Id8bls/8PzM7mau0mj1WZb4IXE= +github.com/pion/ice/v4 v4.0.3/go.mod h1:VfHy0beAZ5loDT7BmJ2LtMtC4dbawIkkkejHPRZNB3Y= github.com/pion/interceptor v0.1.37 h1:aRA8Zpab/wE7/c0O3fh1PqY0AJI3fCSEM5lRWJVorwI= github.com/pion/interceptor v0.1.37/go.mod h1:JzxbJ4umVTlZAf+/utHzNesY8tmRkM2lVmkS82TTj8Y= github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY= github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= -github.com/pion/mdns v0.0.12 h1:CiMYlY+O0azojWDmxdNr7ADGrnZ+V6Ilfner+6mSVK8= -github.com/pion/mdns v0.0.12/go.mod h1:VExJjv8to/6Wqm1FXK+Ii/Z9tsVk/F5sD/N70cnYFbk= +github.com/pion/mdns/v2 v2.0.7 h1:c9kM8ewCgjslaAmicYMFQIde2H9/lrZpjBkN8VwoVtM= +github.com/pion/mdns/v2 v2.0.7/go.mod h1:vAdSYNAT0Jy3Ru0zl2YiW3Rm/fJCwIeM0nToenfOJKA= github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= -github.com/pion/rtcp v1.2.12/go.mod h1:sn6qjxvnwyAkkPzPULIbVqSKI5Dv54Rv7VG0kNxh9L4= github.com/pion/rtcp v1.2.14 h1:KCkGV3vJ+4DAJmvP0vaQShsb0xkRfWkO540Gy102KyE= github.com/pion/rtcp v1.2.14/go.mod h1:sn6qjxvnwyAkkPzPULIbVqSKI5Dv54Rv7VG0kNxh9L4= -github.com/pion/rtp v1.8.3/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU= github.com/pion/rtp v1.8.9 h1:E2HX740TZKaqdcPmf4pw6ZZuG8u5RlMMt+l3dxeu6Wk= github.com/pion/rtp v1.8.9/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU= -github.com/pion/sctp v1.8.33 h1:dSE4wX6uTJBcNm8+YlMg7lw1wqyKHggsP5uKbdj+NZw= -github.com/pion/sctp v1.8.33/go.mod h1:beTnqSzewI53KWoG3nqB282oDMGrhNxBdb+JZnkCwRM= +github.com/pion/sctp v1.8.34 h1:rCuD3m53i0oGxCSp7FLQKvqVx0Nf5AUAHhMRXTTQjBc= +github.com/pion/sctp v1.8.34/go.mod h1:yWkCClkXlzVW7BXfI2PjrUGBwUI0CjXJBkhLt+sdo4U= github.com/pion/sdp/v3 v3.0.9 h1:pX++dCHoHUwq43kuwf3PyJfHlwIj4hXA7Vrifiq0IJY= github.com/pion/sdp/v3 v3.0.9/go.mod h1:B5xmvENq5IXJimIO4zfp6LAe1fD9N+kFv+V/1lOdz8M= -github.com/pion/srtp/v2 v2.0.20 h1:HNNny4s+OUmG280ETrCdgFndp4ufx3/uy85EawYEhTk= -github.com/pion/srtp/v2 v2.0.20/go.mod h1:0KJQjA99A6/a0DOVTu1PhDSw0CXF2jTkqOoMg3ODqdA= -github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4= -github.com/pion/stun v0.6.1/go.mod h1:/hO7APkX4hZKu/D0f2lHzNyvdkTGtIy3NDmLR7kSz/8= -github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= -github.com/pion/transport/v2 v2.2.3/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= -github.com/pion/transport/v2 v2.2.4/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= -github.com/pion/transport/v2 v2.2.10 h1:ucLBLE8nuxiHfvkFKnkDQRYWYfp8ejf4YBOPfaQpw6Q= -github.com/pion/transport/v2 v2.2.10/go.mod h1:sq1kSLWs+cHW9E+2fJP95QudkzbK7wscs8yYgQToO5E= -github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= +github.com/pion/srtp/v3 v3.0.4 h1:2Z6vDVxzrX3UHEgrUyIGM4rRouoC7v+NiF1IHtp9B5M= +github.com/pion/srtp/v3 v3.0.4/go.mod h1:1Jx3FwDoxpRaTh1oRV8A/6G1BnFL+QI82eK4ms8EEJQ= +github.com/pion/stun/v3 v3.0.0 h1:4h1gwhWLWuZWOJIJR9s2ferRO+W3zA/b6ijOI6mKzUw= +github.com/pion/stun/v3 v3.0.0/go.mod h1:HvCN8txt8mwi4FBvS3EmDghW6aQJ24T+y+1TKjB5jyU= github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0= github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo= -github.com/pion/turn/v2 v2.1.3/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= -github.com/pion/turn/v2 v2.1.6 h1:Xr2niVsiPTB0FPtt+yAWKFUkU1eotQbGgpTIld4x1Gc= -github.com/pion/turn/v2 v2.1.6/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= -github.com/pion/webrtc/v3 v3.3.4 h1:v2heQVnXTSqNRXcaFQVOhIOYkLMxOu1iJG8uy1djvkk= -github.com/pion/webrtc/v3 v3.3.4/go.mod h1:liNa+E1iwyzyXqNUwvoMRNQ10x8h8FOeJKL8RkIbamE= +github.com/pion/turn/v4 v4.0.0 h1:qxplo3Rxa9Yg1xXDxxH8xaqcyGUtbHYw4QSCvmFWvhM= +github.com/pion/turn/v4 v4.0.0/go.mod h1:MuPDkm15nYSklKpN8vWJ9W2M0PlyQZqYt1McGuxG7mA= +github.com/pion/webrtc/v4 v4.0.3 h1:vEF0jxIzaVcgEFpeRE7oQv+0L8LsVrBHgb3LKH3VLBM= +github.com/pion/webrtc/v4 v4.0.3/go.mod h1:LvP8Np5b/sM0uyJIcUPvJcCvhtjHxJwzh2H2PYzE6cQ= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -310,10 +299,10 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/thoas/go-funk v0.9.3 h1:7+nAEx3kn5ZJcnDm2Bh23N2yOtweO14bi//dvRtgLpw= github.com/thoas/go-funk v0.9.3/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= github.com/twitchtv/twirp v8.1.3+incompatible h1:+F4TdErPgSUbMZMwp13Q/KgDVuI7HJXP61mNV3/7iuU= @@ -324,7 +313,6 @@ github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/urfave/negroni/v3 v3.1.1 h1:6MS4nG9Jk/UuCACaUlNXCbiKa0ywF9LXz5dGu09v8hw= github.com/urfave/negroni/v3 v3.1.1/go.mod h1:jWvnX03kcSjDBl/ShB0iHvx5uOs7mAzZXW+JvJ5XYAs= -github.com/wlynxg/anet v0.0.3/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= github.com/wlynxg/anet v0.0.5 h1:J3VJGi1gvo0JwZ/P1/Yc/8p63SoW98B5dHkYDmpgvvU= github.com/wlynxg/anet v0.0.5/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -357,8 +345,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= @@ -393,9 +379,7 @@ golang.org/x/net v0.0.0-20210928044308-7d9f5e0b762b/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo= @@ -439,10 +423,7 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= @@ -451,9 +432,7 @@ golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= @@ -463,7 +442,6 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= @@ -492,7 +470,6 @@ google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8i google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= diff --git a/pkg/config/config.go b/pkg/config/config.go index d60c03c8..54401ce7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -22,7 +22,7 @@ import ( "time" "github.com/mitchellh/go-homedir" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/pkg/errors" "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" diff --git a/pkg/rtc/clientinfo.go b/pkg/rtc/clientinfo.go index 6312a0b9..bd14391d 100644 --- a/pkg/rtc/clientinfo.go +++ b/pkg/rtc/clientinfo.go @@ -101,6 +101,10 @@ func (c ClientInfo) SupportErrorResponse() bool { return c.SupportTrackSubscribedEvent() } +func (c ClientInfo) SupportSctpZeroChecksum() bool { + return !(c.isGo() && c.compareVersion("2.1.3") <= 0) +} + // compareVersion compares a semver against the current client SDK version // returning 1 if current version is greater than version // 0 if they are the same, and -1 if it's an earlier version diff --git a/pkg/rtc/config.go b/pkg/rtc/config.go index 60cf06bc..13c3e6db 100644 --- a/pkg/rtc/config.go +++ b/pkg/rtc/config.go @@ -16,7 +16,7 @@ package rtc import ( "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/config" "github.com/livekit/livekit-server/pkg/sfu/buffer" @@ -70,6 +70,8 @@ func NewWebRTCConfig(conf *config.Config) (*WebRTCConfig, error) { // we don't want to use active TCP on a server, clients should be dialing webRTCConfig.SettingEngine.DisableActiveTCP(true) + webRTCConfig.SettingEngine.EnableSCTPZeroChecksum(true) + if rtcConf.PacketBufferSize == 0 { rtcConf.PacketBufferSize = 500 } diff --git a/pkg/rtc/dynacast/dynacastmanager_test.go b/pkg/rtc/dynacast/dynacastmanager_test.go index c38fd30e..759d230c 100644 --- a/pkg/rtc/dynacast/dynacastmanager_test.go +++ b/pkg/rtc/dynacast/dynacastmanager_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/livekit-server/pkg/rtc/types" diff --git a/pkg/rtc/mediaengine.go b/pkg/rtc/mediaengine.go index 75b24e9f..62c3007c 100644 --- a/pkg/rtc/mediaengine.go +++ b/pkg/rtc/mediaengine.go @@ -18,7 +18,7 @@ import ( "fmt" "strings" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/sfu" "github.com/livekit/protocol/livekit" diff --git a/pkg/rtc/mediaengine_test.go b/pkg/rtc/mediaengine_test.go index 353f6f96..d9109016 100644 --- a/pkg/rtc/mediaengine_test.go +++ b/pkg/rtc/mediaengine_test.go @@ -17,7 +17,7 @@ package rtc import ( "testing" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/protocol/livekit" diff --git a/pkg/rtc/mediatrack.go b/pkg/rtc/mediatrack.go index 57dc3c02..ec907771 100644 --- a/pkg/rtc/mediatrack.go +++ b/pkg/rtc/mediatrack.go @@ -22,7 +22,7 @@ import ( "time" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "github.com/livekit/protocol/livekit" diff --git a/pkg/rtc/mediatrackreceiver.go b/pkg/rtc/mediatrackreceiver.go index ffeff5f5..d9cde683 100644 --- a/pkg/rtc/mediatrackreceiver.go +++ b/pkg/rtc/mediatrackreceiver.go @@ -23,7 +23,7 @@ import ( "sync" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "golang.org/x/exp/slices" "google.golang.org/protobuf/proto" diff --git a/pkg/rtc/mediatracksubscriptions.go b/pkg/rtc/mediatracksubscriptions.go index ff0d2f75..6e22cc29 100644 --- a/pkg/rtc/mediatracksubscriptions.go +++ b/pkg/rtc/mediatracksubscriptions.go @@ -20,7 +20,7 @@ import ( "sync" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "github.com/livekit/livekit-server/pkg/sfu/buffer" diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 24ddd4f2..1771e013 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -27,7 +27,7 @@ import ( lru "github.com/hashicorp/golang-lru/v2" "github.com/pion/rtcp" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/pkg/errors" "go.uber.org/atomic" "google.golang.org/protobuf/proto" @@ -1458,6 +1458,10 @@ func (h AnyTransportHandler) OnFailed(_isShortLived bool, _ici *types.ICEConnect h.p.onAnyTransportFailed() } +func (h AnyTransportHandler) OnClosed() { + h.p.onAnyTransportClosed() +} + func (h AnyTransportHandler) OnNegotiationFailed() { h.p.onAnyTransportNegotiationFailed() } @@ -2023,6 +2027,10 @@ func (p *ParticipantImpl) onAnyTransportFailed() { p.setupDisconnectTimer() } +func (p *ParticipantImpl) onAnyTransportClosed() { + _ = p.Close(false, types.ParticipantCloseReasonPeerConnectionDisconnected, false) +} + // subscriberRTCPWorker sends SenderReports periodically when the participant is subscribed to // other publishedTracks in the room. func (p *ParticipantImpl) subscriberRTCPWorker() { diff --git a/pkg/rtc/participant_internal_test.go b/pkg/rtc/participant_internal_test.go index 66089703..9bc0433e 100644 --- a/pkg/rtc/participant_internal_test.go +++ b/pkg/rtc/participant_internal_test.go @@ -20,7 +20,7 @@ import ( "testing" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "go.uber.org/atomic" "google.golang.org/protobuf/proto" diff --git a/pkg/rtc/participant_sdp.go b/pkg/rtc/participant_sdp.go index 616ee865..ae897795 100644 --- a/pkg/rtc/participant_sdp.go +++ b/pkg/rtc/participant_sdp.go @@ -20,7 +20,7 @@ import ( "strings" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/protocol/livekit" lksdp "github.com/livekit/protocol/sdp" diff --git a/pkg/rtc/participant_signal.go b/pkg/rtc/participant_signal.go index ed0ce2ce..9923cab9 100644 --- a/pkg/rtc/participant_signal.go +++ b/pkg/rtc/participant_signal.go @@ -19,7 +19,7 @@ import ( "fmt" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/protocol/livekit" "github.com/livekit/protocol/logger" diff --git a/pkg/rtc/subscribedtrack.go b/pkg/rtc/subscribedtrack.go index c117885e..5c83832f 100644 --- a/pkg/rtc/subscribedtrack.go +++ b/pkg/rtc/subscribedtrack.go @@ -19,7 +19,7 @@ import ( "time" "github.com/bep/debounce" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "google.golang.org/protobuf/proto" diff --git a/pkg/rtc/subscriptionmanager.go b/pkg/rtc/subscriptionmanager.go index a82dd1d6..ce05fca4 100644 --- a/pkg/rtc/subscriptionmanager.go +++ b/pkg/rtc/subscriptionmanager.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" "go.uber.org/atomic" "golang.org/x/exp/maps" diff --git a/pkg/rtc/transport.go b/pkg/rtc/transport.go index 9166f0a4..44538a80 100644 --- a/pkg/rtc/transport.go +++ b/pkg/rtc/transport.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "github.com/pion/dtls/v2/pkg/crypto/elliptic" - "github.com/pion/ice/v2" + "github.com/pion/dtls/v3/pkg/crypto/elliptic" + "github.com/pion/ice/v4" "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/cc" "github.com/pion/interceptor/pkg/gcc" @@ -31,7 +31,7 @@ import ( "github.com/pion/rtcp" "github.com/pion/sctp" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/pkg/errors" "go.uber.org/atomic" "go.uber.org/zap/zapcore" @@ -188,8 +188,6 @@ type PCTransport struct { firstOfferReceived bool firstOfferNoDataChannel bool - remoteICEIsLite *bool - localICEIsLite *bool reliableDC *webrtc.DataChannel reliableDCOpened bool lossyDC *webrtc.DataChannel @@ -650,9 +648,9 @@ func (t *PCTransport) setConnectedAt(at time.Time) bool { return true } -func (t *PCTransport) onICEGatheringStateChange(state webrtc.ICEGathererState) { +func (t *PCTransport) onICEGatheringStateChange(state webrtc.ICEGatheringState) { t.params.Logger.Debugw("ice gathering state change", "state", state.String()) - if state != webrtc.ICEGathererStateComplete { + if state != webrtc.ICEGatheringStateComplete { return } @@ -706,6 +704,11 @@ func (t *PCTransport) onPeerConnectionStateChange(state webrtc.PeerConnectionSta case webrtc.PeerConnectionStateFailed: t.clearConnTimer() t.handleConnectionFailed(false) + case webrtc.PeerConnectionStateClosed: + // peerconnection closed by client + if !t.isClosed.Load() { + t.params.Handler.OnClosed() + } } } diff --git a/pkg/rtc/transport/handler.go b/pkg/rtc/transport/handler.go index ad70ebbb..f7396fa4 100644 --- a/pkg/rtc/transport/handler.go +++ b/pkg/rtc/transport/handler.go @@ -17,7 +17,7 @@ package transport import ( "errors" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/rtc/types" "github.com/livekit/livekit-server/pkg/sfu/streamallocator" @@ -38,6 +38,7 @@ type Handler interface { OnInitialConnected() OnFullyEstablished() OnFailed(isShortLived bool, iceConnectionInfo *types.ICEConnectionInfo) + OnClosed() OnTrack(track *webrtc.TrackRemote, rtpReceiver *webrtc.RTPReceiver) OnDataPacket(kind livekit.DataPacket_Kind, data []byte) OnDataSendError(err error) diff --git a/pkg/rtc/transport/transportfakes/fake_handler.go b/pkg/rtc/transport/transportfakes/fake_handler.go index 18121838..80aebba2 100644 --- a/pkg/rtc/transport/transportfakes/fake_handler.go +++ b/pkg/rtc/transport/transportfakes/fake_handler.go @@ -8,7 +8,7 @@ import ( "github.com/livekit/livekit-server/pkg/rtc/types" "github.com/livekit/livekit-server/pkg/sfu/streamallocator" "github.com/livekit/protocol/livekit" - webrtc "github.com/pion/webrtc/v3" + webrtc "github.com/pion/webrtc/v4" ) type FakeHandler struct { @@ -23,6 +23,10 @@ type FakeHandler struct { onAnswerReturnsOnCall map[int]struct { result1 error } + OnClosedStub func() + onClosedMutex sync.RWMutex + onClosedArgsForCall []struct { + } OnDataPacketStub func(livekit.DataPacket_Kind, []byte) onDataPacketMutex sync.RWMutex onDataPacketArgsForCall []struct { @@ -162,6 +166,30 @@ func (fake *FakeHandler) OnAnswerReturnsOnCall(i int, result1 error) { }{result1} } +func (fake *FakeHandler) OnClosed() { + fake.onClosedMutex.Lock() + fake.onClosedArgsForCall = append(fake.onClosedArgsForCall, struct { + }{}) + stub := fake.OnClosedStub + fake.recordInvocation("OnClosed", []interface{}{}) + fake.onClosedMutex.Unlock() + if stub != nil { + fake.OnClosedStub() + } +} + +func (fake *FakeHandler) OnClosedCallCount() int { + fake.onClosedMutex.RLock() + defer fake.onClosedMutex.RUnlock() + return len(fake.onClosedArgsForCall) +} + +func (fake *FakeHandler) OnClosedCalls(stub func()) { + fake.onClosedMutex.Lock() + defer fake.onClosedMutex.Unlock() + fake.OnClosedStub = stub +} + func (fake *FakeHandler) OnDataPacket(arg1 livekit.DataPacket_Kind, arg2 []byte) { var arg2Copy []byte if arg2 != nil { @@ -591,6 +619,8 @@ func (fake *FakeHandler) Invocations() map[string][][]interface{} { defer fake.invocationsMutex.RUnlock() fake.onAnswerMutex.RLock() defer fake.onAnswerMutex.RUnlock() + fake.onClosedMutex.RLock() + defer fake.onClosedMutex.RUnlock() fake.onDataPacketMutex.RLock() defer fake.onDataPacketMutex.RUnlock() fake.onDataSendErrorMutex.RLock() diff --git a/pkg/rtc/transport_test.go b/pkg/rtc/transport_test.go index c80b206e..16bff8b5 100644 --- a/pkg/rtc/transport_test.go +++ b/pkg/rtc/transport_test.go @@ -22,7 +22,7 @@ import ( "time" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "go.uber.org/atomic" @@ -601,7 +601,7 @@ func TestConfigureAudioTransceiver(t *testing.T) { {true, true}, } { t.Run(fmt.Sprintf("nack=%v,stereo=%v", testcase.nack, testcase.stereo), func(t *testing.T) { - tr, err := pc.AddTransceiverFromKind(webrtc.RTPCodecTypeAudio, webrtc.RtpTransceiverInit{Direction: webrtc.RTPTransceiverDirectionSendonly}) + tr, err := pc.AddTransceiverFromKind(webrtc.RTPCodecTypeAudio, webrtc.RTPTransceiverInit{Direction: webrtc.RTPTransceiverDirectionSendonly}) require.NoError(t, err) configureAudioTransceiver(tr, testcase.stereo, testcase.nack) diff --git a/pkg/rtc/transportmanager.go b/pkg/rtc/transportmanager.go index ff3fb105..9e611634 100644 --- a/pkg/rtc/transportmanager.go +++ b/pkg/rtc/transportmanager.go @@ -23,7 +23,7 @@ import ( "github.com/pion/rtcp" "github.com/pion/sctp" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/pkg/errors" "go.uber.org/atomic" "google.golang.org/protobuf/proto" diff --git a/pkg/rtc/types/ice.go b/pkg/rtc/types/ice.go index 96c9365d..3deede93 100644 --- a/pkg/rtc/types/ice.go +++ b/pkg/rtc/types/ice.go @@ -21,8 +21,8 @@ import ( "strings" "sync" - "github.com/pion/ice/v2" - "github.com/pion/webrtc/v3" + "github.com/pion/ice/v4" + "github.com/pion/webrtc/v4" "golang.org/x/exp/slices" "github.com/livekit/protocol/livekit" diff --git a/pkg/rtc/types/interfaces.go b/pkg/rtc/types/interfaces.go index 0fb3f879..d8cbeb0a 100644 --- a/pkg/rtc/types/interfaces.go +++ b/pkg/rtc/types/interfaces.go @@ -19,7 +19,7 @@ import ( "time" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/protocol/auth" "github.com/livekit/protocol/livekit" diff --git a/pkg/rtc/types/typesfakes/fake_local_participant.go b/pkg/rtc/types/typesfakes/fake_local_participant.go index bebd26b9..09212166 100644 --- a/pkg/rtc/types/typesfakes/fake_local_participant.go +++ b/pkg/rtc/types/typesfakes/fake_local_participant.go @@ -15,7 +15,7 @@ import ( "github.com/livekit/protocol/logger" "github.com/livekit/protocol/utils" "github.com/pion/rtcp" - webrtc "github.com/pion/webrtc/v3" + webrtc "github.com/pion/webrtc/v4" ) type FakeLocalParticipant struct { diff --git a/pkg/rtc/types/typesfakes/fake_subscribed_track.go b/pkg/rtc/types/typesfakes/fake_subscribed_track.go index 42c9a011..6a836a26 100644 --- a/pkg/rtc/types/typesfakes/fake_subscribed_track.go +++ b/pkg/rtc/types/typesfakes/fake_subscribed_track.go @@ -7,7 +7,7 @@ import ( "github.com/livekit/livekit-server/pkg/rtc/types" "github.com/livekit/livekit-server/pkg/sfu" "github.com/livekit/protocol/livekit" - webrtc "github.com/pion/webrtc/v3" + webrtc "github.com/pion/webrtc/v4" ) type FakeSubscribedTrack struct { diff --git a/pkg/rtc/unhandlesimulcast.go b/pkg/rtc/unhandlesimulcast.go index 0c429263..3146cba3 100644 --- a/pkg/rtc/unhandlesimulcast.go +++ b/pkg/rtc/unhandlesimulcast.go @@ -18,7 +18,7 @@ import ( "github.com/pion/interceptor" "github.com/pion/rtp" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/sfu/utils" ) diff --git a/pkg/rtc/utils.go b/pkg/rtc/utils.go index 21390b36..1293cd42 100644 --- a/pkg/rtc/utils.go +++ b/pkg/rtc/utils.go @@ -21,7 +21,7 @@ import ( "net" "strings" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/protocol/livekit" "github.com/livekit/protocol/logger" diff --git a/pkg/rtc/wrappedreceiver.go b/pkg/rtc/wrappedreceiver.go index d260ce71..20945edf 100644 --- a/pkg/rtc/wrappedreceiver.go +++ b/pkg/rtc/wrappedreceiver.go @@ -19,7 +19,7 @@ import ( "strings" "sync" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "golang.org/x/exp/slices" diff --git a/pkg/service/server.go b/pkg/service/server.go index ed7fc95e..20ae0a4b 100644 --- a/pkg/service/server.go +++ b/pkg/service/server.go @@ -27,7 +27,7 @@ import ( "strconv" "time" - "github.com/pion/turn/v2" + "github.com/pion/turn/v4" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/rs/cors" "github.com/twitchtv/twirp" diff --git a/pkg/service/turn.go b/pkg/service/turn.go index a4b91e21..dc2d21b7 100644 --- a/pkg/service/turn.go +++ b/pkg/service/turn.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/jxskiss/base62" - "github.com/pion/turn/v2" + "github.com/pion/turn/v4" "github.com/pkg/errors" "github.com/livekit/protocol/auth" diff --git a/pkg/service/wire.go b/pkg/service/wire.go index b0cbb12f..d4eda2d7 100644 --- a/pkg/service/wire.go +++ b/pkg/service/wire.go @@ -22,7 +22,7 @@ import ( "os" "github.com/google/wire" - "github.com/pion/turn/v2" + "github.com/pion/turn/v4" "github.com/pkg/errors" "github.com/redis/go-redis/v9" "gopkg.in/yaml.v3" diff --git a/pkg/service/wire_gen.go b/pkg/service/wire_gen.go index 19c33c76..1ef7867c 100644 --- a/pkg/service/wire_gen.go +++ b/pkg/service/wire_gen.go @@ -22,7 +22,7 @@ import ( "github.com/livekit/protocol/utils" "github.com/livekit/protocol/webhook" "github.com/livekit/psrpc" - "github.com/pion/turn/v2" + "github.com/pion/turn/v4" "github.com/pkg/errors" "github.com/redis/go-redis/v9" "gopkg.in/yaml.v3" diff --git a/pkg/sfu/buffer/buffer.go b/pkg/sfu/buffer/buffer.go index 2d0cf5c3..2115861c 100644 --- a/pkg/sfu/buffer/buffer.go +++ b/pkg/sfu/buffer/buffer.go @@ -27,7 +27,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "github.com/livekit/livekit-server/pkg/sfu/audio" diff --git a/pkg/sfu/buffer/buffer_test.go b/pkg/sfu/buffer/buffer_test.go index 012c3654..de8f3302 100644 --- a/pkg/sfu/buffer/buffer_test.go +++ b/pkg/sfu/buffer/buffer_test.go @@ -22,7 +22,7 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/mediatransportutil/pkg/nack" diff --git a/pkg/sfu/buffer/factory.go b/pkg/sfu/buffer/factory.go index 2785f95a..ae0bb073 100644 --- a/pkg/sfu/buffer/factory.go +++ b/pkg/sfu/buffer/factory.go @@ -18,7 +18,7 @@ import ( "io" "sync" - "github.com/pion/transport/v2/packetio" + "github.com/pion/transport/v3/packetio" ) type FactoryOfBufferFactory struct { diff --git a/pkg/sfu/connectionquality/connectionstats.go b/pkg/sfu/connectionquality/connectionstats.go index aab57645..c5a857be 100644 --- a/pkg/sfu/connectionquality/connectionstats.go +++ b/pkg/sfu/connectionquality/connectionstats.go @@ -20,7 +20,7 @@ import ( "time" "github.com/frostbyte73/core" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/pkg/sfu/connectionquality/connectionstats_test.go b/pkg/sfu/connectionquality/connectionstats_test.go index fa95fbdc..ca380eb7 100644 --- a/pkg/sfu/connectionquality/connectionstats_test.go +++ b/pkg/sfu/connectionquality/connectionstats_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/livekit-server/pkg/sfu/buffer" diff --git a/pkg/sfu/downtrack.go b/pkg/sfu/downtrack.go index be9b65d5..4ed513b0 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -27,8 +27,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" "github.com/pion/sdp/v3" - "github.com/pion/transport/v2/packetio" - "github.com/pion/webrtc/v3" + "github.com/pion/transport/v3/packetio" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "go.uber.org/zap/zapcore" diff --git a/pkg/sfu/forwarder.go b/pkg/sfu/forwarder.go index 7dcd032e..487a5d04 100644 --- a/pkg/sfu/forwarder.go +++ b/pkg/sfu/forwarder.go @@ -24,7 +24,7 @@ import ( "time" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/zap/zapcore" "github.com/livekit/mediatransportutil" diff --git a/pkg/sfu/forwarder_test.go b/pkg/sfu/forwarder_test.go index f9c8a15e..722c7676 100644 --- a/pkg/sfu/forwarder_test.go +++ b/pkg/sfu/forwarder_test.go @@ -17,7 +17,7 @@ package sfu import ( "testing" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/protocol/logger" diff --git a/pkg/sfu/interceptor/rtx.go b/pkg/sfu/interceptor/rtx.go index 1b7f2c4e..69e00dfa 100644 --- a/pkg/sfu/interceptor/rtx.go +++ b/pkg/sfu/interceptor/rtx.go @@ -19,7 +19,7 @@ import ( "github.com/pion/interceptor" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/sfu/utils" "github.com/livekit/protocol/logger" diff --git a/pkg/sfu/pacer/pacer.go b/pkg/sfu/pacer/pacer.go index f1ec44b8..d8f00cbf 100644 --- a/pkg/sfu/pacer/pacer.go +++ b/pkg/sfu/pacer/pacer.go @@ -19,7 +19,7 @@ import ( "time" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) type Packet struct { diff --git a/pkg/sfu/receiver.go b/pkg/sfu/receiver.go index e2a453e8..e5b83415 100644 --- a/pkg/sfu/receiver.go +++ b/pkg/sfu/receiver.go @@ -22,7 +22,7 @@ import ( "time" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "github.com/livekit/mediatransportutil/pkg/bucket" diff --git a/pkg/sfu/redreceiver_test.go b/pkg/sfu/redreceiver_test.go index d3fdc3eb..16a1340b 100644 --- a/pkg/sfu/redreceiver_test.go +++ b/pkg/sfu/redreceiver_test.go @@ -18,7 +18,7 @@ import ( "testing" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/livekit/livekit-server/pkg/sfu/buffer" diff --git a/pkg/sfu/streamallocator/streamallocator.go b/pkg/sfu/streamallocator/streamallocator.go index ff02a018..f7e486d5 100644 --- a/pkg/sfu/streamallocator/streamallocator.go +++ b/pkg/sfu/streamallocator/streamallocator.go @@ -22,7 +22,7 @@ import ( "github.com/pion/interceptor/pkg/cc" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "go.uber.org/atomic" "github.com/livekit/protocol/livekit" diff --git a/pkg/sfu/testutils/data.go b/pkg/sfu/testutils/data.go index 04903a26..49d5521a 100644 --- a/pkg/sfu/testutils/data.go +++ b/pkg/sfu/testutils/data.go @@ -18,7 +18,7 @@ import ( "time" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/livekit/livekit-server/pkg/sfu/buffer" ) diff --git a/pkg/sfu/utils/helpers.go b/pkg/sfu/utils/helpers.go index 07484277..79dc2a0a 100644 --- a/pkg/sfu/utils/helpers.go +++ b/pkg/sfu/utils/helpers.go @@ -21,7 +21,7 @@ import ( "github.com/pion/interceptor" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) // Do a fuzzy find for a codec in the list of codecs diff --git a/pkg/telemetry/statsconn.go b/pkg/telemetry/statsconn.go index 10ac45fb..b03d0bca 100644 --- a/pkg/telemetry/statsconn.go +++ b/pkg/telemetry/statsconn.go @@ -17,7 +17,7 @@ package telemetry import ( "net" - "github.com/pion/turn/v2" + "github.com/pion/turn/v4" "github.com/livekit/livekit-server/pkg/telemetry/prometheus" ) diff --git a/test/client/client.go b/test/client/client.go index 70f5fb2a..78ae601d 100644 --- a/test/client/client.go +++ b/test/client/client.go @@ -29,7 +29,7 @@ import ( "github.com/gorilla/websocket" "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/thoas/go-funk" "go.uber.org/atomic" "google.golang.org/protobuf/proto" diff --git a/test/client/trackwriter.go b/test/client/trackwriter.go index 9104f9cd..2dc4a5a3 100644 --- a/test/client/trackwriter.go +++ b/test/client/trackwriter.go @@ -21,11 +21,11 @@ import ( "strings" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/h264reader" - "github.com/pion/webrtc/v3/pkg/media/ivfreader" - "github.com/pion/webrtc/v3/pkg/media/oggreader" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/h264reader" + "github.com/pion/webrtc/v4/pkg/media/ivfreader" + "github.com/pion/webrtc/v4/pkg/media/oggreader" "github.com/livekit/protocol/logger" ) diff --git a/test/singlenode_test.go b/test/singlenode_test.go index 5b68ad49..cdbfacd1 100644 --- a/test/singlenode_test.go +++ b/test/singlenode_test.go @@ -24,7 +24,7 @@ import ( "time" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "github.com/stretchr/testify/require" "github.com/thoas/go-funk" "github.com/twitchtv/twirp"