diff --git a/DESIGN.md b/DESIGN.md index e22b08e301a..45ca1ac0e26 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 80dd8c1234f..a089c8cacee 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 1d5631bc489..a0950eb8527 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 9c9154c8cf2..3aa1b204820 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 bc0c7345015..287d8f4ae08 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 0e8ca40c3cb..2d9a6b94fbe 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 d19ada439a9..ccbb72bdb72 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 4ab6e7d5a21..6b2f4cadbf9 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 79797ef7e00..1fd012a01bc 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 8fc5dd8362c..22cf7ef3320 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 2402bfe67d3..9a7856395f7 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 ad55c94bfc9..fee78f518db 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 4c4ab124cf7..19e51264cf5 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 9bc5b63c707..4f9158c2c01 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 d9d13c105dd..bb093cf925b 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 168dc64d921..ca4e4ec719f 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 e2d2e4e27fd..2e879c7a059 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 0caf792f76c..77810bad8b3 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 b79084932c3..001b3f2226f 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 e2df57e4ec8..6944cf8a69d 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 090367493ec..4af4093e697 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 fe68d372672..57d8ed4366d 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 3376d4f2bc4..2fcb0c959ff 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 6f077f06aa0..38e3b74fdd8 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 831e35851f7..ef6df64cac5 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 54d370ff756..2a13904d1bb 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 02014c7e4f0..3481712dd2b 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 7bf909bb760..5277dc94bd0 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 66e3e5a29ef..2d0666fb717 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 19f99ff5e93..07751aeff31 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 2d88307058f..6156f18a07e 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 d948f33d383..58aeb2ba8c4 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 de4b2d6d027..82455c5161e 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 e7d93fcca9f..3b9e2cb8369 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 7486bd69e47..e5f454fd2fb 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 32a35faa0f4..a28d0d3fe47 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 2b0244ec688..0cb60fe429e 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 5ee354b7662..44e777ea47e 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 d3fbd286706..afd01870d1e 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 a2d59036d6d..4cf305991d8 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 b92b931b9d4..0357a39f0ee 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 fd467472317..bf92673ec6b 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 b36f258783a..81acf82c811 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 8622b659a26..15349fbc07c 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 a379054ef8b..61adf5d51f8 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 b6f819ffb15..a5d20bc8e04 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 4568e23ebf4..4da827a71bc 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 5077f01002d..07629824431 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 3a0d9e881c8..acf71d4ac9a 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 1659640a7d4..26c81edf6e8 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 1a41d016aaa..18b565985bb 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 d5771592c40..4362d3e8da4 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 02ffc8399db..da0757fa378 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 10b61ce27e3..c0bbd8ea603 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 97efdce4645..be60f036993 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 1323a437d4a..c1f7719028e 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 35d231fd57d..34266184551 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 955c02088e6..0a42f7e381b 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 e7db628468e..8e272bf984b 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 885463b247b..e7d8e49d3e6 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 6fd1bef2bc0..2d63ab567cf 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 4d4d2b6dc73..5d9624166dd 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 51e1023e69a..fad74e5d897 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 ff7b4fff706..e8bd7ecda1b 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 26ec0aa5c34..8e672fd3613 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 afea8dd0095..7fd1b1ca9f6 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 89d104d10b0..0fc052e892c 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 9e049bf7925..6b52706d28e 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 bd5c84fafef..a1579a59454 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 d972808307c..46c5dffc2dd 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 2e2d6f5ea5b..4ca75427ce9 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 5692d5f564d..fd6df699e34 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 656fcc56411..916bb347d4e 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 47b6982a230..84f1d8fee28 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 7b5a2824489..33e47917fb3 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 7e47acab56c..7b154a5a0e0 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 3a3a1a7472e..cd77976f96e 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 f2f33e4b267..c7e0c9bfa8a 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 42911c9af76..ebbf7542cbd 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 23ca7cbbe9d..140e20f7a36 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 17ce0587afb..d9ab3d01bad 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