Skip to content

Commit

Permalink
Start pion/webrtc/v4
Browse files Browse the repository at this point in the history
60eea43 is a breaking change
  • Loading branch information
Sean-Der committed Sep 5, 2023
1 parent 824739f commit dc4b591
Show file tree
Hide file tree
Showing 81 changed files with 127 additions and 127 deletions.
2 changes: 1 addition & 1 deletion DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<a href="https://github.com/pion/awesome-pion" alt="Awesome Pion"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"></a>
<br>
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/pion/webrtc/test.yaml">
<a href="https://pkg.go.dev/github.com/pion/webrtc/v3"><img src="https://pkg.go.dev/badge/github.com/pion/webrtc/v3.svg" alt="Go Reference"></a>
<a href="https://pkg.go.dev/github.com/pion/webrtc/v4"><img src="https://pkg.go.dev/badge/github.com/pion/webrtc/v4.svg" alt="Go Reference"></a>
<a href="https://codecov.io/gh/pion/webrtc"><img src="https://codecov.io/gh/pion/webrtc/branch/master/graph/badge.svg" alt="Coverage Status"></a>
<a href="https://goreportcard.com/report/github.com/pion/webrtc/v3"><img src="https://goreportcard.com/badge/github.com/pion/webrtc/v3" alt="Go Report Card"></a>
<a href="https://goreportcard.com/report/github.com/pion/webrtc/v4"><img src="https://goreportcard.com/badge/github.com/pion/webrtc/v4" alt="Go Report Card"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
</p>
<br>
Expand All @@ -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.

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion datachannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions dtlstransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/bandwidth-estimation-from-disk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions examples/bandwidth-estimation-from-disk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion examples/broadcast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/broadcast/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-logger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ❤️.
Expand Down
2 changes: 1 addition & 1 deletion examples/data-channels-detach/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/data-channels-detach/jsfiddle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/data-channels-detach/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/data-channels-flow-control/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"

"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/data-channels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/data-channels/jsfiddle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions examples/data-channels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/ice-restart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"time"

"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
)

var peerConnection *webrtc.PeerConnection //nolint
Expand Down
2 changes: 1 addition & 1 deletion examples/ice-single-port/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ice-tcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"net/http"
"time"

"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
)

var api *webrtc.API //nolint
Expand Down
2 changes: 1 addition & 1 deletion examples/insertable-streams/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions examples/insertable-streams/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ortc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/ortc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions examples/pion-to-pion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/pion-to-pion/answer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 2 additions & 2 deletions examples/pion-to-pion/answer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion examples/pion-to-pion/offer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions examples/pion-to-pion/offer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/play-from-disk-renegotiation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/play-from-disk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions examples/play-from-disk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion examples/reflect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit dc4b591

Please sign in to comment.