Add PlayoutDelay to CreateRoomRequest (#1930)

* Add PlayoutDelay to CreateRoomRequest

* Remove max delay from palyoutdelay
This commit is contained in:
cnderrauber
2023-08-03 16:32:59 +08:00
committed by GitHub
parent 03ab242fb8
commit eadc910bff
7 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ func NewDownTrack(params DowntrackParams) (*DownTrack, error) {
if d.params.PlayoutDelayLimit.GetEnabled() && d.params.PlayoutDelayLimit.GetMin() > 0 {
delay := rtpextension.PlayoutDelayFromValue(
uint16(d.params.PlayoutDelayLimit.GetMin()),
uint16(d.params.PlayoutDelayLimit.GetMax()),
rtpextension.PlayoutDelayDefaultMax,
)
b, err := delay.Marshal()
if err == nil {
+2 -1
View File
@@ -6,7 +6,8 @@ import (
)
const (
PlayoutDelayURI = "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"
PlayoutDelayURI = "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"
PlayoutDelayDefaultMax = 4000 // 4s
playoutDelayExtensionSize = 3
)