bring kcp over vp8 (#160)

* bring kcp over vp8 for wbstream

* add multitrack kcp

* make kcp configurable param

* fix lingered kcp tunnel after switch into raw vp8 tunnel

* add reliable setting into ios and desktop joiners
This commit is contained in:
kulikov0 authored and GitHub committed 2026-07-24 13:38:08 +02:00
1 parent 99e5630f19
commit a0229885ca
50 files changed
+1503 -96

No files matched your search

+4 -1
View File
@@ -27,6 +27,7 @@ func main() {
vp8FPS := flag.Int("vp8-fps", 24, "VP8 frame rate (video mode only)")
vp8Batch := flag.Int("vp8-batch", 30, "VP8 batch multiplier (video mode only)")
dualTrack := flag.Bool("dual-track", false, "publish a second VP8 track as ScreenShare and shard outbound across both (video mode only)")
reliable := flag.Bool("reliable", false, "wrap the video tunnel with KCP reliability (video mode only)")
flag.Parse()
if *roomFlag == "" {
@@ -72,10 +73,12 @@ func main() {
VP8Batch: *vp8Batch,
ScreenShare: *dualTrack,
IsJoiner: true,
Reliable: *reliable,
})
sess.OnConnected = func(tun tunnel.DataTunnel) {
readBuf := common.VP8BufSize
if _, ok := tun.(*tunnel.DCTunnel); ok {
switch tun.(type) {
case *tunnel.DCTunnel, *tunnel.MultiTrackKCPTunnel:
readBuf = common.DCBufSize
}
bridge := tunnel.NewRelayBridgeWithAuth(tun, "joiner", readBuf, log.Printf, *socksUser, *socksPass)