Update pion/webrtc library to v4

This commit is contained in:
Alex X
2025-04-07 16:21:14 +03:00
parent bfd26560b1
commit af7509ebaf
25 changed files with 57 additions and 131 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
"github.com/AlexxIT/go2rtc/pkg/xnet"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
type Address struct {
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
"github.com/gorilla/websocket"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
// streamsHandler supports:
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
"github.com/gorilla/websocket"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
type kinesisRequest struct {
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/tcp"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
// This package handles the Milestone WebRTC session lifecycle, including authentication,
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
"github.com/gorilla/websocket"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
func openIPCClient(rawURL string, query url.Values) (core.Producer, error) {
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
const MimeSDP = "application/sdp"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/webrtc"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
"github.com/rs/zerolog"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/AlexxIT/go2rtc/internal/api/ws"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
"github.com/stretchr/testify/require"
)