Commit e724194e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Upgrade to pion/webrtc v3.

parent 8a4d315c
......@@ -9,7 +9,7 @@ import (
"errors"
"github.com/pion/rtp"
"github.com/pion/webrtc/v2"
"github.com/pion/webrtc/v3"
)
var ErrConnectionClosed = errors.New("connection is closed")
......
......@@ -11,8 +11,8 @@ import (
"github.com/at-wat/ebml-go/webm"
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/pion/webrtc/v2"
"github.com/pion/webrtc/v2/pkg/media/samplebuilder"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v3/pkg/media/samplebuilder"
)
type diskClient struct {
......
......@@ -6,6 +6,6 @@ require (
github.com/at-wat/ebml-go v0.11.0
github.com/gorilla/websocket v1.4.2
github.com/pion/rtcp v1.2.3
github.com/pion/rtp v1.5.5
github.com/pion/webrtc/v2 v2.2.15
github.com/pion/rtp v1.6.0
github.com/pion/webrtc/v3 v3.0.0-beta.1
)
This diff is collapsed.
......@@ -16,9 +16,9 @@ import (
"sync/atomic"
"time"
"sfu/rtptime"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v2"
"sfu/rtptime"
)
type chatHistoryEntry struct {
......@@ -79,7 +79,6 @@ func addGroup(name string, desc *groupDescription) (*group, error) {
if groups.groups == nil {
groups.groups = make(map[string]*group)
s := webrtc.SettingEngine{}
s.SetTrickle(true)
m := webrtc.MediaEngine{}
m.RegisterCodec(webrtc.NewRTPVP8CodecExt(
webrtc.DefaultPayloadTypeVP8, 90000,
......
......@@ -21,7 +21,7 @@ import (
"github.com/pion/rtcp"
"github.com/pion/rtp"
"github.com/pion/webrtc/v2"
"github.com/pion/webrtc/v3"
)
type bitrate struct {
......
......@@ -18,7 +18,7 @@ import (
"sfu/estimator"
"github.com/gorilla/websocket"
"github.com/pion/webrtc/v2"
"github.com/pion/webrtc/v3"
)
var iceConf webrtc.Configuration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment