Skip to content

Instantly share code, notes, and snippets.

🐒
Lexi is the love of my life, I love her more than she loves me

Sean DuBois Sean-Der

View GitHub Profile
View gist:8fa830efc9c4ece3c472d2a188e683ac
diff --git a/server_handlers.go b/server_handlers.go
index 7d6abbc..384f6cc 100644
--- a/server_handlers.go
+++ b/server_handlers.go
@@ -264,7 +264,7 @@ func serverFlightHandler(c *Conn) (bool, error) {
content: &handshake{
// sequenceNumber and messageSequence line up, may need to be re-evaluated
handshakeHeader: handshakeHeader{
- messageSequence: uint16(sequenceNumber),
+ messageSequence: 1,
View gist:9c4c2d286cf040cc2ff61277a18490bd
diff --git a/README.md b/README.md
index 9868096..2b95e8f 100644
--- a/README.md
+++ b/README.md
@@ -7,18 +7,18 @@
<p align="center">
<a href="https://pion.ly"><img src="https://img.shields.io/badge/pion-ice-gray.svg?longCache=true&colorB=brightgreen" alt="Pion transport"></a>
<a href="http://gophers.slack.com/messages/pion"><img src="https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen" alt="Slack Widget"></a>
- <a href="https://waffle.io/pions/webrtc"><img src="https://img.shields.io/badge/pm-waffle-gray.svg?longCache=true&colorB=brightgreen" alt="Waffle board"></a>
+ <a href="https://waffle.io/pion/webrtc"><img src="https://img.shields.io/badge/pm-waffle-gray.svg?longCache=true&colorB=brightgreen" alt="Waffle board"></a>
View gist:80cfd8e0555c51ade56aa73f86b1a965
diff --git a/gstreamer-send/main.go b/gstreamer-send/main.go
index 3a2ab8c..df5df2a 100644
--- a/gstreamer-send/main.go
+++ b/gstreamer-send/main.go
@@ -27,8 +27,16 @@ func main() {
},
}
+ m := webrtc.MediaEngine{}
+ s := webrtc.SettingEngine{}
View gist:53bf916be25aa7784b036cea8f8f7e19
type: answer, sdp: v=0
o=- 136457436 1554875484 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 0D:BE:ED:C5:F9:70:66:31:2C:17:63:60:85:94:BC:BA:EF:4D:87:6E:95:B4:42:98:0F:D0:EC:03:8F:15:B6:51
a=group:BUNDLE 0 1 2
m=audio 9 UDP/TLS/RTP/SAVPF 111 9
c=IN IP4 0.0.0.0
a=setup:active
a=mid:0
@Sean-Der
Sean-Der / index.html
Last active Mar 31, 2019
Example for metal3d
View index.html
<html>
<body>
<video id="video"> </video>
<br />
<button onclick="start()">Call start</button>
<script>
function E(selector) {
return document.querySelector(selector);
View gist:ff9bb7f7f6a51f8c54f49a38fafd0213
diff --git a/go.mod b/go.mod
index 4c30ea5..182a19d 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ require (
github.com/pions/rtcp v1.0.0
github.com/pions/rtp v1.0.0
github.com/pions/sctp v1.3.1
- github.com/pions/sdp v1.3.0
+ github.com/pions/sdp/v2 v2.0.0
View gist:65e3487abfa5756275cd6be95e1196d8
diff --git a/capture/capture.cpp b/capture/capture.cpp
index ee37276..35c4b11 100644
--- a/capture/capture.cpp
+++ b/capture/capture.cpp
@@ -5,7 +5,7 @@
int capture_start(int width, int height) {
int err;
- err = cam_open(0, width, height);
+ err = cam_open(2, width, height);
View gist:a2e965bd6e7c10fe098bb259fb90bfe2
diff --git a/rtcpeerconnection.go b/rtcpeerconnection.go
index bc9fefc..eefc3e8 100644
--- a/rtcpeerconnection.go
+++ b/rtcpeerconnection.go
@@ -1132,8 +1132,8 @@ func (pc *RTCPeerConnection) AddTrack(track *RTCTrack) (*RTCRtpSender, error) {
if !t.stopped &&
// t.Sender == nil && // TODO: check that the sender has never sent
t.Sender.Track == nil &&
- t.Receiver.Track != nil &&
- t.Receiver.Track.Kind == track.Kind {
View gist:5e5d33b34a211d8b5c2ff351b285b7c9
diff --git a/examples/gstreamer-send-offer/main.go b/examples/gstreamer-send-offer/main.go
index 152c3a0..b9df5ba 100644
--- a/examples/gstreamer-send-offer/main.go
+++ b/examples/gstreamer-send-offer/main.go
@@ -35,12 +35,6 @@ func main() {
fmt.Printf("Connection State has changed %s \n", connectionState.String())
})
- // Create a audio track
- opusTrack, err := peerConnection.NewRTCSampleTrack(webrtc.DefaultPayloadTypeOpus, "audio", "pion1")
View gist:fe0306585e90e8305b2df5bdc8a7f9db
diff --git a/examples/gstreamer-send-offer/main.go b/examples/gstreamer-send-offer/main.go
index 152c3a0..b9df5ba 100644
--- a/examples/gstreamer-send-offer/main.go
+++ b/examples/gstreamer-send-offer/main.go
@@ -35,12 +35,6 @@ func main() {
fmt.Printf("Connection State has changed %s \n", connectionState.String())
})
- // Create a audio track
- opusTrack, err := peerConnection.NewRTCSampleTrack(webrtc.DefaultPayloadTypeOpus, "audio", "pion1")
You can’t perform that action at this time.