add dual track support for tm

This commit is contained in:
kulikov0 committed 2026-08-31 22:58:17 +02:00
1 parent d7b43786ca
commit 7f603bdb24
8 files changed
+302 -41

No files matched your search

+3
View File
@@ -52,6 +52,7 @@ func main() {
vp8FPS := flag.Int("vp8-fps", 24, "VP8 frame rate")
vp8Batch := flag.Int("vp8-batch", 30, "VP8 batch multiplier")
reliable := flag.Bool("reliable", false, "wrap the video tunnel with KCP reliability")
dualTrack := flag.Bool("dual-track", false, "request a second screenshare download track for 2x recv throughput")
debugFlag := flag.Bool("debug", false, "verbose debug logging")
flag.Parse()
common.Debug = *debugFlag
@@ -106,12 +107,14 @@ func main() {
VP8FPS int `json:"vp8Fps"`
VP8Batch int `json:"vp8Batch"`
Reliable bool `json:"reliable"`
DualTrack bool `json:"dualTrack"`
}{
JoinLink: strings.TrimSpace(*tmLink),
DisplayName: *displayName,
VP8FPS: *vp8FPS,
VP8Batch: *vp8Batch,
Reliable: *reliable,
DualTrack: *dualTrack,
})
go inner.RunWithParams(string(params))