This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/go.mod b/go.mod | |
index c9f03e1..be25e8c 100644 | |
--- a/go.mod | |
+++ b/go.mod | |
@@ -2,6 +2,8 @@ module github.com/pion/webrtc/v3 | |
go 1.12 | |
+replace github.com/pion/interceptor => /home/sean/go/src/github.com/pion/interceptor | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/main.go b/client/main.go | |
index 95db8ec..bd65ae3 100644 | |
--- a/client/main.go | |
+++ b/client/main.go | |
@@ -57,9 +57,17 @@ func main() { | |
panic("client expects server host+port") | |
} | |
+ i := 0 | |
for range time.NewTicker(5 * time.Second).C { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/main.go b/client/main.go | |
index 95db8ec..bd65ae3 100644 | |
--- a/client/main.go | |
+++ b/client/main.go | |
@@ -57,9 +57,17 @@ func main() { | |
panic("client expects server host+port") | |
} | |
+ i := 0 | |
for range time.NewTicker(5 * time.Second).C { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/rtp-forwarder/main.go b/examples/rtp-forwarder/main.go | |
index e16ef6e..51eb82f 100644 | |
--- a/examples/rtp-forwarder/main.go | |
+++ b/examples/rtp-forwarder/main.go | |
@@ -25,9 +25,9 @@ func main() { | |
m := webrtc.MediaEngine{} | |
// Setup the codecs you want to use. | |
- // We'll use a VP8 and Opus but you can also define your own | |
+ // We'll use a H264 and Opus but you can also define your own |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/pion-to-pion/answer/main.go b/examples/pion-to-pion/answer/main.go | |
index 81ad7c8..019acbb 100644 | |
--- a/examples/pion-to-pion/answer/main.go | |
+++ b/examples/pion-to-pion/answer/main.go | |
@@ -53,6 +53,10 @@ func main() { // nolint:gocognit | |
panic(err) | |
} | |
+ peerConnection.OnTrack(func(track *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) { | |
+ fmt.Printf("Track %s has started, of type %d: %s \n", track.ID(), track.PayloadType(), track.Codec().MimeType) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/pion/webrtc/v3" | |
) | |
const freeSwitchOffer = ` | |
v=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
// Can you have different PayloadType and extmap across multiple media sections | |
let offerMixedExtmap = `v=0 | |
o=- 6564526012321221612 2 IN IP4 127.0.0.1 | |
s=- | |
t=0 0 | |
a=group:BUNDLE 0 1 | |
a=msid-semantic: WMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module srtp | |
go 1.15 | |
require ( | |
github.com/pion/rtp v1.6.1 | |
github.com/pion/srtp v1.5.2 | |
github.com/pion/webrtc/v3 v3.0.0-beta.13 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"os" | |
"time" | |
"github.com/pion/randutil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/pion-to-pion/answer/main.go b/examples/pion-to-pion/answer/main.go | |
index 81ad7c8..5d7e977 100644 | |
--- a/examples/pion-to-pion/answer/main.go | |
+++ b/examples/pion-to-pion/answer/main.go | |
@@ -38,17 +38,13 @@ func main() { // nolint:gocognit | |
pendingCandidates := make([]*webrtc.ICECandidate, 0) | |
// Everything below is the Pion WebRTC API! Thanks for using it ❤️. | |
- // Prepare the configuration | |
- config := webrtc.Configuration{ |