Skip to content

Commit 9c88d83

Browse files
committed
Use /v2 imports
v2.0.0 has been tagged!
1 parent c19b3d6 commit 9c88d83

File tree

11 files changed

+25
-16
lines changed

11 files changed

+25
-16
lines changed

.travis.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
before_script:
1+
language: go
2+
dist: xenial
3+
4+
go:
5+
- 1.12.x
6+
7+
env:
8+
- GO111MODULE=on
9+
10+
before_install:
11+
- sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
212
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
3-
- go get ./...
413

514
script:
615
- golangci-lint run

gstreamer-receive/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"time"
77

88
"github.com/pion/rtcp"
9-
"github.com/pion/webrtc"
9+
"github.com/pion/webrtc/v2"
1010

1111
gst "github.com/pion/example-webrtc-applications/internal/gstreamer-sink"
1212
"github.com/pion/example-webrtc-applications/internal/signal"

gstreamer-send-offer/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"math/rand"
77

8-
"github.com/pion/webrtc"
8+
"github.com/pion/webrtc/v2"
99

1010
gst "github.com/pion/example-webrtc-applications/internal/gstreamer-src"
1111
"github.com/pion/example-webrtc-applications/internal/signal"

gstreamer-send/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"math/rand"
77

8-
"github.com/pion/webrtc"
8+
"github.com/pion/webrtc/v2"
99

1010
gst "github.com/pion/example-webrtc-applications/internal/gstreamer-src"
1111
"github.com/pion/example-webrtc-applications/internal/signal"

internal/gstreamer-sink/gst.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "C"
1010
import (
1111
"unsafe"
1212

13-
"github.com/pion/webrtc"
13+
"github.com/pion/webrtc/v2"
1414
)
1515

1616
// StartMainLoop starts GLib's main loop

internal/gstreamer-src/gst.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"sync"
1313
"unsafe"
1414

15-
"github.com/pion/webrtc"
16-
"github.com/pion/webrtc/pkg/media"
15+
"github.com/pion/webrtc/v2"
16+
"github.com/pion/webrtc/v2/pkg/media"
1717
)
1818

1919
func init() {

janus-gateway/streaming/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"time"
66

77
janus "github.com/notedit/janus-go"
8-
"github.com/pion/webrtc"
9-
"github.com/pion/webrtc/pkg/media"
10-
"github.com/pion/webrtc/pkg/media/ivfwriter"
11-
"github.com/pion/webrtc/pkg/media/opuswriter"
8+
"github.com/pion/webrtc/v2"
9+
"github.com/pion/webrtc/v2/pkg/media"
10+
"github.com/pion/webrtc/v2/pkg/media/ivfwriter"
11+
"github.com/pion/webrtc/v2/pkg/media/opuswriter"
1212
)
1313

1414
func saveToDisk(i media.Writer, track *webrtc.Track) {

janus-gateway/video-room/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
janus "github.com/notedit/janus-go"
10-
"github.com/pion/webrtc"
10+
"github.com/pion/webrtc/v2"
1111

1212
gst "github.com/pion/example-webrtc-applications/internal/gstreamer-src"
1313
)

sfu-ws/broadcast_data.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"sync"
55

6-
"github.com/pion/webrtc"
6+
"github.com/pion/webrtc/v2"
77
)
88

99
// BroadcastHub keeps a list of all channels

sfu-ws/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"net/http"
77

8-
"github.com/pion/webrtc"
8+
"github.com/pion/webrtc/v2"
99
"github.com/povilasv/prommod"
1010
"github.com/prometheus/client_golang/prometheus"
1111
"github.com/prometheus/client_golang/prometheus/promhttp"

sfu-ws/room.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/gorilla/websocket"
1212
"github.com/pion/rtcp"
13-
"github.com/pion/webrtc"
13+
"github.com/pion/webrtc/v2"
1414
)
1515

1616
// Peer config

0 commit comments

Comments
 (0)