diff --git a/DESIGN.md b/DESIGN.md index e22b08e3..45ca1ac0 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -19,7 +19,7 @@ When possible we leave all decisions to the user. When choice is possible (like If you know how to use WebRTC in your browser, you know how to use Pion WebRTC. We try our best just to duplicate the Javascript API, so your code can look the same everywhere. -If this is your first time using WebRTC, don't worry! We have multiple [examples](https://github.com/pion/webrtc/tree/master/examples) and [GoDoc](https://pkg.go.dev/github.com/pion/webrtc/v3) +If this is your first time using WebRTC, don't worry! We have multiple [examples](https://github.com/pion/webrtc/tree/master/examples) and [GoDoc](https://pkg.go.dev/github.com/pion/webrtc/v4) ### Bring your own media Pion WebRTC doesn't make any assumptions about where your audio, video or text come from. You can use FFmpeg, GStreamer, MLT or just serve a video file. diff --git a/README.md b/README.md index 80dd8c12..a089c8ca 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@
GitHub Workflow Status - Go Reference + Go Reference Coverage Status - Go Report Card + Go Report Card License: MIT


@@ -30,7 +30,7 @@ **[awesome-pion](https://github.com/pion/awesome-pion)** contains projects that have used Pion, and serve as real world examples of usage. -**[GoDoc](https://pkg.go.dev/github.com/pion/webrtc/v3)** is an auto generated API reference. All our Public APIs are commented. +**[GoDoc](https://pkg.go.dev/github.com/pion/webrtc/v4)** is an auto generated API reference. All our Public APIs are commented. **[FAQ](https://github.com/pion/webrtc/wiki/FAQ)** has answers to common questions. If you have a question not covered please ask in [Slack](https://pion.ly/slack) we are always looking to expand it. @@ -60,7 +60,7 @@ This book is vendor agnostic and will not have any Pion specific information. * Send/Receive audio and video * Renegotiation * Plan-B and Unified Plan -* [SettingEngine](https://pkg.go.dev/github.com/pion/webrtc/v3#SettingEngine) for Pion specific extensions +* [SettingEngine](https://pkg.go.dev/github.com/pion/webrtc/v4#SettingEngine) for Pion specific extensions #### Connectivity diff --git a/certificate.go b/certificate.go index 1d5631bc..a0950eb8 100644 --- a/certificate.go +++ b/certificate.go @@ -21,7 +21,7 @@ import ( "time" "github.com/pion/dtls/v2/pkg/crypto/fingerprint" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) // Certificate represents a x509Cert used to authenticate WebRTC communications. diff --git a/datachannel.go b/datachannel.go index 9c9154c8..3aa1b204 100644 --- a/datachannel.go +++ b/datachannel.go @@ -17,7 +17,7 @@ import ( "github.com/pion/datachannel" "github.com/pion/logging" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) const dataChannelBufferSize = math.MaxUint16 // message size limit for Chromium diff --git a/dtlstransport.go b/dtlstransport.go index bc0c7345..287d8f4a 100644 --- a/dtlstransport.go +++ b/dtlstransport.go @@ -25,9 +25,9 @@ import ( "github.com/pion/logging" "github.com/pion/rtcp" "github.com/pion/srtp/v3" - "github.com/pion/webrtc/v3/internal/mux" - "github.com/pion/webrtc/v3/internal/util" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/internal/mux" + "github.com/pion/webrtc/v4/internal/util" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) // DTLSTransport allows an application access to information about the DTLS diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 0e8ca40c..2d9a6b94 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -16,8 +16,8 @@ import ( "testing" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/pkg/media" "github.com/sclevine/agouti" ) diff --git a/examples/README.md b/examples/README.md index d19ada43..ccbb72bd 100644 --- a/examples/README.md +++ b/examples/README.md @@ -40,7 +40,7 @@ We've made it easy to run the browser based examples on your local machine. 1. Build and run the example server: ``` sh - GO111MODULE=on go get github.com/pion/webrtc/v3 + GO111MODULE=on go get github.com/pion/webrtc/v4 git clone https://github.com/pion/webrtc.git $GOPATH/src/github.com/pion/webrtc cd $GOPATH/src/github.com/pion/webrtc/examples go run examples.go diff --git a/examples/bandwidth-estimation-from-disk/README.md b/examples/bandwidth-estimation-from-disk/README.md index 4ab6e7d5..6b2f4cad 100644 --- a/examples/bandwidth-estimation-from-disk/README.md +++ b/examples/bandwidth-estimation-from-disk/README.md @@ -15,7 +15,7 @@ ffmpeg -i $INPUT_FILE -g 30 -b:v 2.5M -s 1280x720 high.ivf ### Download bandwidth-estimation-from-disk ``` -go get github.com/pion/webrtc/v3/examples/bandwidth-estimation-from-disk +go get github.com/pion/webrtc/v4/examples/bandwidth-estimation-from-disk ``` ### Open bandwidth-estimation-from-disk example page diff --git a/examples/bandwidth-estimation-from-disk/main.go b/examples/bandwidth-estimation-from-disk/main.go index 79797ef7..1fd012a0 100644 --- a/examples/bandwidth-estimation-from-disk/main.go +++ b/examples/bandwidth-estimation-from-disk/main.go @@ -17,10 +17,10 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/cc" "github.com/pion/interceptor/pkg/gcc" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/ivfreader" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfreader" ) const ( diff --git a/examples/broadcast/README.md b/examples/broadcast/README.md index 8fc5dd83..22cf7ef3 100644 --- a/examples/broadcast/README.md +++ b/examples/broadcast/README.md @@ -7,7 +7,7 @@ This could serve as the building block to building conferencing software, and ot ### Download broadcast ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/broadcast +go get github.com/pion/webrtc/v4/examples/broadcast ``` ### Open broadcast example page diff --git a/examples/broadcast/main.go b/examples/broadcast/main.go index 2402bfe6..9a785639 100644 --- a/examples/broadcast/main.go +++ b/examples/broadcast/main.go @@ -14,8 +14,8 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/intervalpli" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { // nolint:gocognit diff --git a/examples/custom-logger/README.md b/examples/custom-logger/README.md index ad55c94b..fee78f51 100644 --- a/examples/custom-logger/README.md +++ b/examples/custom-logger/README.md @@ -7,7 +7,7 @@ users to override this and process messages however they want. ### Download custom-logger ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/custom-logger +go get github.com/pion/webrtc/v4/examples/custom-logger ``` ### Run custom-logger diff --git a/examples/custom-logger/main.go b/examples/custom-logger/main.go index 4c4ab124..19e51264 100644 --- a/examples/custom-logger/main.go +++ b/examples/custom-logger/main.go @@ -12,7 +12,7 @@ import ( "os" "github.com/pion/logging" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) // Everything below is the Pion WebRTC API! Thanks for using it ❤️. diff --git a/examples/data-channels-detach/README.md b/examples/data-channels-detach/README.md index 9bc5b63c..4f9158c2 100644 --- a/examples/data-channels-detach/README.md +++ b/examples/data-channels-detach/README.md @@ -6,7 +6,7 @@ The example mirrors the data-channels example. ## Install ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/data-channels-detach +go get github.com/pion/webrtc/v4/examples/data-channels-detach ``` ## Usage diff --git a/examples/data-channels-detach/jsfiddle/main.go b/examples/data-channels-detach/jsfiddle/main.go index d9d13c10..bb093cf9 100644 --- a/examples/data-channels-detach/jsfiddle/main.go +++ b/examples/data-channels-detach/jsfiddle/main.go @@ -12,9 +12,9 @@ import ( "syscall/js" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4/examples/internal/signal" ) const messageSize = 15 diff --git a/examples/data-channels-detach/main.go b/examples/data-channels-detach/main.go index 168dc64d..ca4e4ec7 100644 --- a/examples/data-channels-detach/main.go +++ b/examples/data-channels-detach/main.go @@ -10,8 +10,8 @@ import ( "os" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) const messageSize = 15 diff --git a/examples/data-channels-flow-control/main.go b/examples/data-channels-flow-control/main.go index e2d2e4e2..2e879c7a 100644 --- a/examples/data-channels-flow-control/main.go +++ b/examples/data-channels-flow-control/main.go @@ -12,7 +12,7 @@ import ( "sync/atomic" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) const ( diff --git a/examples/data-channels/README.md b/examples/data-channels/README.md index 0caf792f..77810bad 100644 --- a/examples/data-channels/README.md +++ b/examples/data-channels/README.md @@ -5,7 +5,7 @@ data-channels is a Pion WebRTC application that shows how you can send/recv Data ### Download data-channels ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/data-channels +go get github.com/pion/webrtc/v4/examples/data-channels ``` ### Open data-channels example page diff --git a/examples/data-channels/jsfiddle/main.go b/examples/data-channels/jsfiddle/main.go index b7908493..001b3f22 100644 --- a/examples/data-channels/jsfiddle/main.go +++ b/examples/data-channels/jsfiddle/main.go @@ -10,8 +10,8 @@ import ( "fmt" "syscall/js" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { diff --git a/examples/data-channels/main.go b/examples/data-channels/main.go index e2df57e4..6944cf8a 100644 --- a/examples/data-channels/main.go +++ b/examples/data-channels/main.go @@ -9,8 +9,8 @@ import ( "os" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { diff --git a/examples/ice-restart/main.go b/examples/ice-restart/main.go index 09036749..4af4093e 100644 --- a/examples/ice-restart/main.go +++ b/examples/ice-restart/main.go @@ -10,7 +10,7 @@ import ( "net/http" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) var peerConnection *webrtc.PeerConnection //nolint diff --git a/examples/ice-single-port/main.go b/examples/ice-single-port/main.go index fe68d372..57d8ed43 100644 --- a/examples/ice-single-port/main.go +++ b/examples/ice-single-port/main.go @@ -14,7 +14,7 @@ import ( "time" "github.com/pion/ice/v3" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) var api *webrtc.API //nolint diff --git a/examples/ice-tcp/main.go b/examples/ice-tcp/main.go index 3376d4f2..2fcb0c95 100644 --- a/examples/ice-tcp/main.go +++ b/examples/ice-tcp/main.go @@ -16,7 +16,7 @@ import ( "net/http" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) var api *webrtc.API //nolint diff --git a/examples/insertable-streams/README.md b/examples/insertable-streams/README.md index 6f077f06..38e3b74f 100644 --- a/examples/insertable-streams/README.md +++ b/examples/insertable-streams/README.md @@ -15,7 +15,7 @@ ffmpeg -i $INPUT_FILE -g 30 output.ivf ### Download insertable-streams ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/insertable-streams +go get github.com/pion/webrtc/v4/examples/insertable-streams ``` ### Open insertable-streams example page diff --git a/examples/insertable-streams/main.go b/examples/insertable-streams/main.go index 831e3585..ef6df64c 100644 --- a/examples/insertable-streams/main.go +++ b/examples/insertable-streams/main.go @@ -15,10 +15,10 @@ import ( "os" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/ivfreader" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfreader" ) const cipherKey = 0xAA diff --git a/examples/ortc/README.md b/examples/ortc/README.md index 54d370ff..2a13904d 100644 --- a/examples/ortc/README.md +++ b/examples/ortc/README.md @@ -10,7 +10,7 @@ In this example we have defined a simple JSON based signaling protocol. ### Download ortc ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/ortc +go get github.com/pion/webrtc/v4/examples/ortc ``` ### Run first client as offerer diff --git a/examples/ortc/main.go b/examples/ortc/main.go index 02014c7e..3481712d 100644 --- a/examples/ortc/main.go +++ b/examples/ortc/main.go @@ -12,8 +12,8 @@ import ( "fmt" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { diff --git a/examples/pion-to-pion/README.md b/examples/pion-to-pion/README.md index 7bf909bb..5277dc94 100644 --- a/examples/pion-to-pion/README.md +++ b/examples/pion-to-pion/README.md @@ -8,12 +8,12 @@ The `answer` side acts like a HTTP server and should therefore be ran first. First run `answer`: ```sh export GO111MODULE=on -go install github.com/pion/webrtc/v3/examples/pion-to-pion/answer +go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer answer ``` Next, run `offer`: ```sh -go install github.com/pion/webrtc/v3/examples/pion-to-pion/offer +go install github.com/pion/webrtc/v4/examples/pion-to-pion/offer offer ``` diff --git a/examples/pion-to-pion/answer/Dockerfile b/examples/pion-to-pion/answer/Dockerfile index 66e3e5a2..2d0666fb 100644 --- a/examples/pion-to-pion/answer/Dockerfile +++ b/examples/pion-to-pion/answer/Dockerfile @@ -4,7 +4,7 @@ FROM golang:1.21 ENV GO111MODULE=on -RUN go install github.com/pion/webrtc/v3/examples/pion-to-pion/answer@latest +RUN go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer@latest CMD ["answer"] diff --git a/examples/pion-to-pion/answer/main.go b/examples/pion-to-pion/answer/main.go index 19f99ff5..07751aef 100644 --- a/examples/pion-to-pion/answer/main.go +++ b/examples/pion-to-pion/answer/main.go @@ -15,8 +15,8 @@ import ( "sync" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func signalCandidate(addr string, c *webrtc.ICECandidate) error { diff --git a/examples/pion-to-pion/offer/Dockerfile b/examples/pion-to-pion/offer/Dockerfile index 2d883070..6156f18a 100644 --- a/examples/pion-to-pion/offer/Dockerfile +++ b/examples/pion-to-pion/offer/Dockerfile @@ -4,6 +4,6 @@ FROM golang:1.21 ENV GO111MODULE=on -RUN go install github.com/pion/webrtc/v3/examples/pion-to-pion/offer@latest +RUN go install github.com/pion/webrtc/v4/examples/pion-to-pion/offer@latest CMD ["offer"] diff --git a/examples/pion-to-pion/offer/main.go b/examples/pion-to-pion/offer/main.go index d948f33d..58aeb2ba 100644 --- a/examples/pion-to-pion/offer/main.go +++ b/examples/pion-to-pion/offer/main.go @@ -15,8 +15,8 @@ import ( "sync" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func signalCandidate(addr string, c *webrtc.ICECandidate) error { diff --git a/examples/play-from-disk-renegotiation/main.go b/examples/play-from-disk-renegotiation/main.go index de4b2d6d..82455c51 100644 --- a/examples/play-from-disk-renegotiation/main.go +++ b/examples/play-from-disk-renegotiation/main.go @@ -16,9 +16,9 @@ import ( "time" "github.com/pion/randutil" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/ivfreader" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfreader" ) var peerConnection *webrtc.PeerConnection //nolint diff --git a/examples/play-from-disk/README.md b/examples/play-from-disk/README.md index e7d93fcc..3b9e2cb8 100644 --- a/examples/play-from-disk/README.md +++ b/examples/play-from-disk/README.md @@ -16,7 +16,7 @@ ffmpeg -i $INPUT_FILE -c:a libopus -page_duration 20000 -vn output.ogg ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/play-from-disk +go get github.com/pion/webrtc/v4/examples/play-from-disk ``` ### Open play-from-disk example page diff --git a/examples/play-from-disk/main.go b/examples/play-from-disk/main.go index 7486bd69..e5f454fd 100644 --- a/examples/play-from-disk/main.go +++ b/examples/play-from-disk/main.go @@ -15,11 +15,11 @@ import ( "os" "time" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" - "github.com/pion/webrtc/v3/pkg/media" - "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/examples/internal/signal" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfreader" + "github.com/pion/webrtc/v4/pkg/media/oggreader" ) const ( diff --git a/examples/reflect/README.md b/examples/reflect/README.md index 32a35faa..a28d0d3f 100644 --- a/examples/reflect/README.md +++ b/examples/reflect/README.md @@ -5,7 +5,7 @@ reflect demonstrates how with one PeerConnection you can send video to Pion and ### Download reflect ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/reflect +go get github.com/pion/webrtc/v4/examples/reflect ``` ### Open reflect example page diff --git a/examples/reflect/main.go b/examples/reflect/main.go index 2b0244ec..0cb60fe4 100644 --- a/examples/reflect/main.go +++ b/examples/reflect/main.go @@ -13,8 +13,8 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/intervalpli" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) // nolint:gocognit diff --git a/examples/rtcp-processing/README.md b/examples/rtcp-processing/README.md index 5ee354b7..44e777ea 100644 --- a/examples/rtcp-processing/README.md +++ b/examples/rtcp-processing/README.md @@ -12,7 +12,7 @@ also craft messages to influence the media quality. ### Download rtcp-processing ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/rtcp-processing +go get github.com/pion/webrtc/v4/examples/rtcp-processing ``` ### Open rtcp-processing example page diff --git a/examples/rtcp-processing/main.go b/examples/rtcp-processing/main.go index d3fbd286..afd01870 100644 --- a/examples/rtcp-processing/main.go +++ b/examples/rtcp-processing/main.go @@ -10,8 +10,8 @@ package main import ( "fmt" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { diff --git a/examples/rtp-forwarder/README.md b/examples/rtp-forwarder/README.md index a2d59036..4cf30599 100644 --- a/examples/rtp-forwarder/README.md +++ b/examples/rtp-forwarder/README.md @@ -5,7 +5,7 @@ rtp-forwarder is a simple application that shows how to forward your webcam/micr ### Download rtp-forwarder ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/rtp-forwarder +go get github.com/pion/webrtc/v4/examples/rtp-forwarder ``` ### Open rtp-forwarder example page diff --git a/examples/rtp-forwarder/main.go b/examples/rtp-forwarder/main.go index b92b931b..0357a39f 100644 --- a/examples/rtp-forwarder/main.go +++ b/examples/rtp-forwarder/main.go @@ -16,8 +16,8 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/intervalpli" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) type udpConn struct { diff --git a/examples/rtp-to-webrtc/README.md b/examples/rtp-to-webrtc/README.md index fd467472..bf92673e 100644 --- a/examples/rtp-to-webrtc/README.md +++ b/examples/rtp-to-webrtc/README.md @@ -7,7 +7,7 @@ With this example we have pre-made GStreamer and ffmpeg pipelines, but you can u ### Download rtp-to-webrtc ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/rtp-to-webrtc +go get github.com/pion/webrtc/v4/examples/rtp-to-webrtc ``` ### Open jsfiddle example page diff --git a/examples/rtp-to-webrtc/main.go b/examples/rtp-to-webrtc/main.go index b36f2587..81acf82c 100644 --- a/examples/rtp-to-webrtc/main.go +++ b/examples/rtp-to-webrtc/main.go @@ -13,8 +13,8 @@ import ( "io" "net" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { diff --git a/examples/save-to-disk-av1/README.md b/examples/save-to-disk-av1/README.md index 8622b659..15349fbc 100644 --- a/examples/save-to-disk-av1/README.md +++ b/examples/save-to-disk-av1/README.md @@ -11,7 +11,7 @@ You can then send this video back to your browser using [play-from-disk](https:/ ### Download save-to-disk-av1 ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/save-to-disk-av1 +go get github.com/pion/webrtc/v4/examples/save-to-disk-av1 ``` ### Open save-to-disk-av1 example page diff --git a/examples/save-to-disk-av1/main.go b/examples/save-to-disk-av1/main.go index a379054e..61adf5d5 100644 --- a/examples/save-to-disk-av1/main.go +++ b/examples/save-to-disk-av1/main.go @@ -14,10 +14,10 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/intervalpli" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/ivfwriter" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfwriter" ) func saveToDisk(i media.Writer, track *webrtc.TrackRemote) { diff --git a/examples/save-to-disk/README.md b/examples/save-to-disk/README.md index b6f819ff..a5d20bc8 100644 --- a/examples/save-to-disk/README.md +++ b/examples/save-to-disk/README.md @@ -11,7 +11,7 @@ You can then send this video back to your browser using [play-from-disk](https:/ ### Download save-to-disk ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/save-to-disk +go get github.com/pion/webrtc/v4/examples/save-to-disk ``` ### Open save-to-disk example page diff --git a/examples/save-to-disk/main.go b/examples/save-to-disk/main.go index 4568e23e..4da827a7 100644 --- a/examples/save-to-disk/main.go +++ b/examples/save-to-disk/main.go @@ -14,11 +14,11 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/intervalpli" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/media/ivfwriter" - "github.com/pion/webrtc/v3/pkg/media/oggwriter" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/media/ivfwriter" + "github.com/pion/webrtc/v4/pkg/media/oggwriter" ) func saveToDisk(i media.Writer, track *webrtc.TrackRemote) { diff --git a/examples/simulcast/README.md b/examples/simulcast/README.md index 5077f010..07629824 100644 --- a/examples/simulcast/README.md +++ b/examples/simulcast/README.md @@ -9,7 +9,7 @@ is selected. ### Download simulcast ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/simulcast +go get github.com/pion/webrtc/v4/examples/simulcast ``` ### Open simulcast example page diff --git a/examples/simulcast/main.go b/examples/simulcast/main.go index 3a0d9e88..acf71d4a 100644 --- a/examples/simulcast/main.go +++ b/examples/simulcast/main.go @@ -16,8 +16,8 @@ import ( "github.com/pion/interceptor" "github.com/pion/rtcp" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) // nolint:gocognit diff --git a/examples/stats/README.md b/examples/stats/README.md index 1659640a..26c81edf 100644 --- a/examples/stats/README.md +++ b/examples/stats/README.md @@ -8,7 +8,7 @@ during a session and why. ### Download stats ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/stats +go get github.com/pion/webrtc/v4/examples/stats ``` ### Open stats example page diff --git a/examples/stats/main.go b/examples/stats/main.go index 1a41d016..18b56598 100644 --- a/examples/stats/main.go +++ b/examples/stats/main.go @@ -13,8 +13,8 @@ import ( "github.com/pion/interceptor" "github.com/pion/interceptor/pkg/stats" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) // nolint:gocognit diff --git a/examples/swap-tracks/README.md b/examples/swap-tracks/README.md index d5771592..4362d3e8 100644 --- a/examples/swap-tracks/README.md +++ b/examples/swap-tracks/README.md @@ -5,7 +5,7 @@ swap-tracks demonstrates how to swap multiple incoming tracks on a single outgoi ### Download swap-tracks ``` export GO111MODULE=on -go get github.com/pion/webrtc/v3/examples/swap-tracks +go get github.com/pion/webrtc/v4/examples/swap-tracks ``` ### Open swap-tracks example page diff --git a/examples/swap-tracks/main.go b/examples/swap-tracks/main.go index 02ffc839..da0757fa 100644 --- a/examples/swap-tracks/main.go +++ b/examples/swap-tracks/main.go @@ -16,8 +16,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/pion/webrtc/v3" - "github.com/pion/webrtc/v3/examples/internal/signal" + "github.com/pion/webrtc/v4" + "github.com/pion/webrtc/v4/examples/internal/signal" ) func main() { // nolint:gocognit diff --git a/examples/trickle-ice/main.go b/examples/trickle-ice/main.go index 10b61ce2..c0bbd8ea 100644 --- a/examples/trickle-ice/main.go +++ b/examples/trickle-ice/main.go @@ -10,7 +10,7 @@ import ( "net/http" "time" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" "golang.org/x/net/websocket" ) diff --git a/examples/vnet/show-network-usage/main.go b/examples/vnet/show-network-usage/main.go index 97efdce4..be60f036 100644 --- a/examples/vnet/show-network-usage/main.go +++ b/examples/vnet/show-network-usage/main.go @@ -17,7 +17,7 @@ import ( "github.com/pion/logging" "github.com/pion/transport/v3/vnet" - "github.com/pion/webrtc/v3" + "github.com/pion/webrtc/v4" ) /* VNet Configuration diff --git a/go.mod b/go.mod index 1323a437..c1f77190 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pion/webrtc/v3 +module github.com/pion/webrtc/v4 go 1.13 diff --git a/iceserver.go b/iceserver.go index 35d231fd..34266184 100644 --- a/iceserver.go +++ b/iceserver.go @@ -10,7 +10,7 @@ import ( "encoding/json" "github.com/pion/stun" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) // ICEServer describes a single STUN and TURN server that can be used by diff --git a/iceserver_test.go b/iceserver_test.go index 955c0208..0a42f7e3 100644 --- a/iceserver_test.go +++ b/iceserver_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/pion/stun" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" "github.com/stretchr/testify/assert" ) diff --git a/icetransport.go b/icetransport.go index e7db6284..8e272bf9 100644 --- a/icetransport.go +++ b/icetransport.go @@ -15,7 +15,7 @@ import ( "github.com/pion/ice/v3" "github.com/pion/logging" - "github.com/pion/webrtc/v3/internal/mux" + "github.com/pion/webrtc/v4/internal/mux" ) // ICETransport allows an application access to information about the ICE diff --git a/interceptor_test.go b/interceptor_test.go index 885463b2..e7d8e49d 100644 --- a/interceptor_test.go +++ b/interceptor_test.go @@ -17,7 +17,7 @@ import ( mock_interceptor "github.com/pion/interceptor/pkg/mock" "github.com/pion/rtp" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/mediaengine.go b/mediaengine.go index 6fd1bef2..2d63ab56 100644 --- a/mediaengine.go +++ b/mediaengine.go @@ -16,7 +16,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" "github.com/pion/sdp/v3" - "github.com/pion/webrtc/v3/internal/fmtp" + "github.com/pion/webrtc/v4/internal/fmtp" ) const ( diff --git a/ortc_media_test.go b/ortc_media_test.go index 4d4d2b6d..5d962416 100644 --- a/ortc_media_test.go +++ b/ortc_media_test.go @@ -12,7 +12,7 @@ import ( "time" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/ortc_test.go b/ortc_test.go index 51e1023e..fad74e5d 100644 --- a/ortc_test.go +++ b/ortc_test.go @@ -7,7 +7,7 @@ package webrtc import ( - "github.com/pion/webrtc/v3/internal/util" + "github.com/pion/webrtc/v4/internal/util" ) type testORTCStack struct { diff --git a/peerconnection.go b/peerconnection.go index ff7b4fff..e8bd7ecd 100644 --- a/peerconnection.go +++ b/peerconnection.go @@ -25,8 +25,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/sdp/v3" "github.com/pion/srtp/v3" - "github.com/pion/webrtc/v3/internal/util" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/internal/util" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) // PeerConnection represents a WebRTC connection that establishes a diff --git a/peerconnection_go_test.go b/peerconnection_go_test.go index 26ec0aa5..8e672fd3 100644 --- a/peerconnection_go_test.go +++ b/peerconnection_go_test.go @@ -26,8 +26,8 @@ import ( "github.com/pion/rtp" "github.com/pion/transport/v3/test" "github.com/pion/transport/v3/vnet" - "github.com/pion/webrtc/v3/internal/util" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/internal/util" + "github.com/pion/webrtc/v4/pkg/rtcerr" "github.com/stretchr/testify/assert" ) diff --git a/peerconnection_js.go b/peerconnection_js.go index afea8dd0..7fd1b1ca 100644 --- a/peerconnection_js.go +++ b/peerconnection_js.go @@ -11,7 +11,7 @@ import ( "syscall/js" "github.com/pion/ice/v3" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) // PeerConnection represents a WebRTC connection that establishes a diff --git a/peerconnection_media_test.go b/peerconnection_media_test.go index 89d104d1..0fc052e8 100644 --- a/peerconnection_media_test.go +++ b/peerconnection_media_test.go @@ -25,7 +25,7 @@ import ( "github.com/pion/sdp/v3" "github.com/pion/transport/v3/test" "github.com/pion/transport/v3/vnet" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/peerconnection_renegotiation_test.go b/peerconnection_renegotiation_test.go index 9e049bf7..6b52706d 100644 --- a/peerconnection_renegotiation_test.go +++ b/peerconnection_renegotiation_test.go @@ -20,9 +20,9 @@ import ( "github.com/pion/rtp" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/internal/util" - "github.com/pion/webrtc/v3/pkg/media" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/internal/util" + "github.com/pion/webrtc/v4/pkg/media" + "github.com/pion/webrtc/v4/pkg/rtcerr" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/peerconnection_test.go b/peerconnection_test.go index bd5c84fa..a1579a59 100644 --- a/peerconnection_test.go +++ b/peerconnection_test.go @@ -12,7 +12,7 @@ import ( "github.com/pion/sdp/v3" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" "github.com/stretchr/testify/assert" ) diff --git a/pkg/media/samplebuilder/samplebuilder.go b/pkg/media/samplebuilder/samplebuilder.go index d9728083..46c5dffc 100644 --- a/pkg/media/samplebuilder/samplebuilder.go +++ b/pkg/media/samplebuilder/samplebuilder.go @@ -9,7 +9,7 @@ import ( "time" "github.com/pion/rtp" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" ) // SampleBuilder buffers packets until media frames are complete. diff --git a/pkg/media/samplebuilder/samplebuilder_test.go b/pkg/media/samplebuilder/samplebuilder_test.go index 2e2d6f5e..4ca75427 100644 --- a/pkg/media/samplebuilder/samplebuilder_test.go +++ b/pkg/media/samplebuilder/samplebuilder_test.go @@ -9,7 +9,7 @@ import ( "time" "github.com/pion/rtp" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/rtpcodec.go b/rtpcodec.go index 5692d5f5..fd6df699 100644 --- a/rtpcodec.go +++ b/rtpcodec.go @@ -6,7 +6,7 @@ package webrtc import ( "strings" - "github.com/pion/webrtc/v3/internal/fmtp" + "github.com/pion/webrtc/v4/internal/fmtp" ) // RTPCodecType determines the type of a codec diff --git a/rtpreceiver.go b/rtpreceiver.go index 656fcc56..916bb347 100644 --- a/rtpreceiver.go +++ b/rtpreceiver.go @@ -15,7 +15,7 @@ import ( "github.com/pion/interceptor" "github.com/pion/rtcp" "github.com/pion/srtp/v3" - "github.com/pion/webrtc/v3/internal/util" + "github.com/pion/webrtc/v4/internal/util" ) // trackStreams maintains a mapping of RTP/RTCP streams to a specific track diff --git a/rtpreceiver_go_test.go b/rtpreceiver_go_test.go index 47b6982a..84f1d8fe 100644 --- a/rtpreceiver_go_test.go +++ b/rtpreceiver_go_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/rtpreceiver_test.go b/rtpreceiver_test.go index 7b5a2824..33e47917 100644 --- a/rtpreceiver_test.go +++ b/rtpreceiver_test.go @@ -12,7 +12,7 @@ import ( "time" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/rtpsender.go b/rtpsender.go index 7e47acab..7b154a5a 100644 --- a/rtpsender.go +++ b/rtpsender.go @@ -16,7 +16,7 @@ import ( "github.com/pion/randutil" "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/pion/webrtc/v3/internal/util" + "github.com/pion/webrtc/v4/internal/util" ) type trackEncoding struct { diff --git a/rtpsender_test.go b/rtpsender_test.go index 3a3a1a74..cd77976f 100644 --- a/rtpsender_test.go +++ b/rtpsender_test.go @@ -15,7 +15,7 @@ import ( "time" "github.com/pion/transport/v3/test" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/pkg/media" "github.com/stretchr/testify/assert" ) diff --git a/sctptransport.go b/sctptransport.go index f2f33e4b..c7e0c9bf 100644 --- a/sctptransport.go +++ b/sctptransport.go @@ -16,7 +16,7 @@ import ( "github.com/pion/datachannel" "github.com/pion/logging" "github.com/pion/sctp" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) const sctpMaxChannels = uint16(65535) diff --git a/signalingstate.go b/signalingstate.go index 42911c9a..ebbf7542 100644 --- a/signalingstate.go +++ b/signalingstate.go @@ -7,7 +7,7 @@ import ( "fmt" "sync/atomic" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" ) type stateChangeOp int diff --git a/signalingstate_test.go b/signalingstate_test.go index 23ca7cbb..140e20f7 100644 --- a/signalingstate_test.go +++ b/signalingstate_test.go @@ -6,7 +6,7 @@ package webrtc import ( "testing" - "github.com/pion/webrtc/v3/pkg/rtcerr" + "github.com/pion/webrtc/v4/pkg/rtcerr" "github.com/stretchr/testify/assert" ) diff --git a/track_local_static.go b/track_local_static.go index 17ce0587..d9ab3d01 100644 --- a/track_local_static.go +++ b/track_local_static.go @@ -11,8 +11,8 @@ import ( "sync" "github.com/pion/rtp" - "github.com/pion/webrtc/v3/internal/util" - "github.com/pion/webrtc/v3/pkg/media" + "github.com/pion/webrtc/v4/internal/util" + "github.com/pion/webrtc/v4/pkg/media" ) // trackBinding is a single bind for a Track