* fix: prevent duplicate call link detection (#23)

Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local>

* bot improvements (#25)

Co-authored-by: Maksim <maksim@MBP-Maksim.lan>

* headless vk video creator

* add scroll to logs

* allow peer reconnection

* add todo about topology changes, kick stale peer to prevent SFU topology

* unified relay for headless

* remove relay binaries, extend build-go.sh to build them

* refactor constants

* limit headless resource usage

* nuke everyone and yourself at sfu topology changes

* add headless for creator

* save bot enabled state

* increment release version

---------

Co-authored-by: Nevenuga <80585376+Nevenuga@users.noreply.github.com>
Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local>
Co-authored-by: Maksim <maksim@MBP-Maksim.lan>
Co-authored-by: kulikov <user@Mac.lan>
This commit is contained in:
authored and GitHub committed 2026-04-02 22:52:56 +02:00
1 parent d6a98e84ee
commit c8e1ba444d
37 files changed
+2589 -133

No files matched your search

+5 -4
View File
@@ -3,6 +3,7 @@ package pion
import (
"encoding/binary"
"sync"
"sync/atomic"
"time"
"github.com/pion/webrtc/v4"
@@ -65,12 +66,12 @@ func (t *VP8DataTunnel) buildFrame(data []byte) []byte {
}
// SendData queues tunnel data to be sent in the next VP8 frame
var sendCount uint64
var sendCount atomic.Uint64
func (t *VP8DataTunnel) SendData(data []byte) {
sendCount++
if sendCount <= 5 || sendCount%100 == 0 {
t.logFn("vp8tunnel: SendData #%d len=%d queueLen=%d", sendCount, len(data), len(t.sendQueue))
n := sendCount.Add(1)
if n <= 5 || n%100 == 0 {
t.logFn("vp8tunnel: SendData #%d len=%d queueLen=%d", n, len(data), len(t.sendQueue))
}
t.sendQueue <- data
}