Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Sean-Der's full-sized avatar
🙈
Lexi is the love of my life, I love her more then Daisy loves cheese

Sean DuBois Sean-Der

🙈
Lexi is the love of my life, I love her more then Daisy loves cheese
View GitHub Profile
@Sean-Der
Sean-Der / ivfwriter.go
Created April 9, 2022 03:54
Pion IVFWriter for AV1
package main
import (
"encoding/binary"
"errors"
"io"
"os"
"github.com/pion/rtp/v2"
"github.com/pion/rtp/v2/codecs"
commit c8ae82a0bdca9171d297b6fa9739225f4d2f399a
Author: Sean DuBois <sean@siobud.com>
Date: Mon Mar 21 14:28:00 2022 -0400
Unlock on error in internal/mux
Resolves #2154
commit 24c1ad6abcab1cb874a0767ec7a4d26a6a5e78d8
Author: Pion <59523206+pionbot@users.noreply.github.com>
diff --git a/Live.go b/Live.go
index 0096cb7..0051ef4 100644
--- a/Live.go
+++ b/Live.go
@@ -8,6 +8,7 @@ import (
"runtime/debug"
"sync"
+ "github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
package main
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
@Sean-Der
Sean-Der / out.patch
Last active November 5, 2021 17:25
DataChannel race
diff --git a/peerconnection.go b/peerconnection.go
index a5d50ee..5dbf46e 100644
--- a/peerconnection.go
+++ b/peerconnection.go
@@ -1313,28 +1313,6 @@ func (pc *PeerConnection) startSCTP() {
return
}
-
- // DataChannels that need to be opened now that SCTP is available
diff --git a/server/main.go b/server/main.go
index 3f5b52f..fecd6c5 100644
--- a/server/main.go
+++ b/server/main.go
@@ -5,6 +5,7 @@ import (
"fmt"
"io"
"log"
+ "net"
"net/http"
@Sean-Der
Sean-Der / patch.diff
Created September 16, 2021 16:20
Disable usrsctp in 3ed2b8d0b4deeafb51abe1e51aa0a7c241bfc1ba
diff --git a/media/sctp/sctp_transport_factory.cc b/media/sctp/sctp_transport_factory.cc
index 5097d423d9..7d59a9688e 100644
--- a/media/sctp/sctp_transport_factory.cc
+++ b/media/sctp/sctp_transport_factory.cc
@@ -12,44 +12,22 @@
#include "rtc_base/system/unused.h"
-#ifdef WEBRTC_HAVE_DCSCTP
#include "media/sctp/dcsctp_transport.h" // nogncheck
commit 7b2aae677126b40d84e4cf1c1f6f8859cc1bf973
Author: Sean DuBois <sean@siobud.com>
Date: Thu Aug 26 22:02:39 2021 -0400
FireFox fix
diff --git a/src/main.go b/src/main.go
index 577a5ec..5a53567 100644
--- a/src/main.go
+++ b/src/main.go
diff --git a/group/group.go b/group/group.go
index e6cbb74..c5d4fb9 100644
--- a/group/group.go
+++ b/group/group.go
@@ -878,9 +878,7 @@ func (desc *Description) GetPermission(group string, c Challengeable) (ClientPer
if good {
p.Op = true
p.Present = true
- if desc.AllowRecording {
- p.Record = true

ice-singe-port

ice-singe-port demonstrates Pion WebRTC's ability to serve many PeerConnections on a single port.

Pion WebRTC has no global state, so by default ports can't be shared between two PeerConnections. Using the SettingEngine a developer can manually share state between many PeerConnections and allow multiple to use the same port

Instructions

Download ice-singe-port