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 / 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

// +build !js
package main
import (
"encoding/json"
"fmt"
"net"
"net/http"
"time"
{
"input_file": "output.ivf",
"stream_type": "video",
"avg_fps": 30.0,
"num_frames": 2109,
"avg_bitrate": 744.443,
"avg_bitrate_over_chunks": NaN,
"max_bitrate": 800.76,
"min_bitrate": 413.04,
"max_bitrate_factor": 1.076,
# WebRTC: The video bits
Quality of Service is a difficult problem in WebRTC. You spend hours perfecting
your design in the lab. You test in different network conditions and try your best.
A week later the reports trickle in of different customers having unreproducable issues.
Then when you go to research you can't even find consensus on how to solve these problems.
Most companies don’t discuss how they do it, and those that do don’t agree.
This talk is about my time building media experiences with WebRTC. The lessons I
have learned, and mistakes along the way. This talk doesn’t discuss signaling, connectivity
diff --git a/examples/rtp-to-webrtc/main.go b/examples/rtp-to-webrtc/main.go
index 71c3be4..e94636a 100644
--- a/examples/rtp-to-webrtc/main.go
+++ b/examples/rtp-to-webrtc/main.go
@@ -7,10 +7,8 @@ import (
"net"
"github.com/pion/rtp"
- "github.com/pion/rtp/codecs"
"github.com/pion/webrtc/v3"
@Sean-Der
Sean-Der / README.md
Last active January 28, 2021 06:56
Pion DTLS AECDH-AES128-SHA Example
  • openssl s_server -dtls -cipher "AECDH-AES128-SHA:@SECLEVEL=0" -state -accept 127.0.0.1:4444 -nocert -msg
  • openssl s_client -dtls -cipher "AECDH-AES128-SHA:@SECLEVEL=0" -state -connect 127.0.0.1:4444
-type cipherSuite interface {
+type CipherSuite interface {
String() string
ID() CipherSuiteID
- certificateType() clientCertificateType
- hashFunc() func() hash.Hash
- isPSK() bool
- isInitialized() bool
+ CertificateType() ClientCertificateType
+ HashFunc() func() hash.Hash