Control latency of lossy data channel (#4088)

* Control latency of lossy data channel

* remove log

* test
This commit is contained in:
cnderrauber
2025-11-18 16:30:16 +08:00
committed by GitHub
parent 5175c1afa1
commit 54cf7d46c8
8 changed files with 274 additions and 140 deletions
+3
View File
@@ -124,6 +124,9 @@ type RTCConfig struct {
// be dropped for a slow data channel to avoid blocking the room.
DatachannelSlowThreshold int `yaml:"datachannel_slow_threshold,omitempty"`
// Target latency for lossy data channels, used to drop packets to reduce latency.
DatachannelLossyTargetLatency time.Duration `yaml:"datachannel_lossy_target_latency,omitempty"`
ForwardStats ForwardStatsConfig `yaml:"forward_stats,omitempty"`
}