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

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

Report or block Sean-Der

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.go
package main
import (
"fmt"
"time"
"github.com/pion/webrtc/v2"
"github.com/pion/webrtc/v2/examples/internal/signal"
)
View pion.diff
diff --git a/examples/pion-to-pion/answer/main.go b/examples/pion-to-pion/answer/main.go
index aa44fd7..d6a56e7 100644
--- a/examples/pion-to-pion/answer/main.go
+++ b/examples/pion-to-pion/answer/main.go
@@ -22,9 +22,12 @@ func main() {
config := webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
{
- URLs: []string{"stun:stun.l.google.com:19302"},
+ URLs: []string{"turn:global.turn.twilio.com:443?transport=tcp"},
View gist:0fac80f8aa0ff9a76ad8daa24b9ed43d
package main
import (
"crypto/tls"
"fmt"
"log"
"net"
"time"
"github.com/pion/logging"
View gist:5a166e16b5383daf3788a776d7845d60
diff --git a/association.go b/association.go
index 2e3aab1..e0ec341 100644
--- a/association.go
+++ b/association.go
@@ -377,6 +377,8 @@ func (a *Association) closeAllTimers() {
a.ackTimer.close()
}
+var conn net.Conn
+
View gist:8677b050486699db61cce8d096dad887
diff --git a/agent.go b/agent.go
index a36423e..bd2c60d 100644
--- a/agent.go
+++ b/agent.go
@@ -596,6 +596,8 @@ func (a *Agent) taskLoop() {
}
} else {
select {
+ case <-a.forceCandidateContact:
+ a.selector.ContactCandidates()
View gist:7eeafe111d627e69a3172027fe6eb697
datachannel_js.go:70:3:TODO: Ensure message order?
datachannel_js_detach.go:22:15:TODO: Potential leak?
datachannel_js_detach.go:25:2:TODO: OnClose?
peerconnection_js.go:76:3:BUG(albrow): This reference to the underlying DataChannel doesn't know
peerconnection_js.go:79:3:fix by keeping a mutex-protected list of all DataChannel references as a
peerconnection_js.go:127:2:TODO: Enable these checks once Certificates are supported.
quictransport.go:128:2:TODO: Check why never received.
sctptransport.go:239:43:TODO: get from SDP
sctptransport.go:240:43:TODO: Get from SCTP implementation
View gist:237fcf18e348749ca2676d200e680892
v=0
o=- 471506532038167729 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=msid-semantic: WMS L7E883xNBmOTumdCwEGvbbZKAa617fGWuop1
m=audio 60915 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 23.252.60.236
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:704553097 1 udp 2113937151 d1c8d7f6-f7cb-4fdf-b242-bd7431c64469.local 60915 typ host generation 0 network-cost 999
View bench.c
#include <srtp2/auth.h>
#include <srtp2/cipher.h>
#include <srtp2/crypto_types.h>
#include <srtp2/srtp.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
char SKEL_RTP_PACKET[17] = {0x80, 0x60, 0x69, 0x8f, 0xd9, 0xc2, 0x93, 0xda, 0x1c, 0x64, 0x27, 0x82, 0x98, 0x36, 0xbe, 0x88, 0x9e};
View gist:a1720422dfe233d3daf6623afb6bf9ae
diff --git a/candidate_base.go b/candidate_base.go
index b5cb216..6628711 100644
--- a/candidate_base.go
+++ b/candidate_base.go
@@ -95,6 +95,7 @@ func (c *candidateBase) recvLoop() {
return
}
+ fmt.Printf("Read %s -> %s", srcAddr, c.addr())
handleInboundCandidateMsg(c, buffer[:n], srcAddr, log)
View gist:89294713f5194304da9661bd584eef48
diff --git a/candidate_relay.go b/candidate_relay.go
index 12f9f92..769af0d 100644
--- a/candidate_relay.go
+++ b/candidate_relay.go
@@ -2,6 +2,7 @@ package ice
import (
"errors"
+ "fmt"
"io"
You can’t perform that action at this time.