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:
@@ -226,7 +226,7 @@ func (t *MediaTrackReceiver) SetPotentialCodecs(codecs []webrtc.RTPCodecParamete
|
||||
// that is munged in svc codec.
|
||||
headersWithoutDD := make([]webrtc.RTPHeaderExtensionParameter, 0, len(headers))
|
||||
for _, h := range headers {
|
||||
if h.URI != dependencydescriptor.ExtensionUrl {
|
||||
if h.URI != dependencydescriptor.ExtensionURI {
|
||||
headersWithoutDD = append(headersWithoutDD, h)
|
||||
}
|
||||
}
|
||||
@@ -401,6 +401,13 @@ func (t *MediaTrackReceiver) Source() livekit.TrackSource {
|
||||
return t.trackInfo.Source
|
||||
}
|
||||
|
||||
func (t *MediaTrackReceiver) Stream() string {
|
||||
t.lock.RLock()
|
||||
defer t.lock.RUnlock()
|
||||
|
||||
return t.trackInfo.Stream
|
||||
}
|
||||
|
||||
func (t *MediaTrackReceiver) PublisherID() livekit.ParticipantID {
|
||||
return t.params.ParticipantID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user