VP8 pacing + traffic obfuscation in headless

This commit is contained in:
kulikov0 committed 2026-05-08 16:26:24 +02:00
1 parent deb1625617
commit b48b0cb927
34 files changed
+936 -218

No files matched your search

+11
View File
@@ -78,6 +78,17 @@ func (rb *RelayBridge) send(connID uint32, msgType byte, payload []byte) {
func (rb *RelayBridge) handleTunnelData(data []byte) {
DecodeFrames(data, func(connID uint32, msgType byte, payload []byte) {
if connID == ControlConnID && msgType == MsgConfig {
fps, batch, ok := DecodeVP8Config(payload)
if !ok {
return
}
if rb.mode == "creator" {
rb.logFn("relay: peer requested vp8 pacing fps=%d batch=%d", fps, batch)
rb.tunnel.Reconfigure(fps, batch)
}
return
}
switch rb.mode {
case "joiner":
rb.handleJoinerMessage(connID, msgType, payload)