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
+2 -2
View File
@@ -12,7 +12,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/webrtc"
"github.com/google/uuid"
"github.com/gorilla/websocket"
pion "github.com/pion/webrtc/v3"
pion "github.com/pion/webrtc/v4"
)
type Client struct {
@@ -536,6 +536,6 @@ func (c *Client) MarshalJSON() ([]byte, error) {
if webrtcProd, ok := c.prod.(*webrtc.Conn); ok {
return webrtcProd.MarshalJSON()
}
return json.Marshal(c.prod)
}