Add control of playout delay (#1838)

* Add control of playout delay

Add config to enable playout delay. The delay will be limited by
[min,max] in the config option and calculated by upstream & downstream
RTT.

* check protocol version to enable playout delay

* Move config to room, limit playout-delay update interval, solve comments

* Remove adaptive playout-delay

* Remove unused config
This commit is contained in:
cnderrauber
2023-08-02 16:12:23 +08:00
committed by GitHub
parent 0c5161e9ab
commit f7a1776f4c
24 changed files with 598 additions and 137 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapabili
for _, ext := range params.HeaderExtensions {
switch ext.URI {
case dd.ExtensionUrl:
case dd.ExtensionURI:
b.ddExt = uint8(ext.ID)
frc := NewFrameRateCalculatorDD(b.clockRate, b.logger)
for i := range b.frameRateCalculator {