mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 19:55:41 +00:00
Debug log downtrack life cycle a bit (#2342)
This commit is contained in:
@@ -1579,6 +1579,7 @@ func (d *DownTrack) SetConnected() {
|
||||
if !d.connected.Swap(true) {
|
||||
d.onBindAndConnectedChange()
|
||||
}
|
||||
d.params.Logger.Debugw("downtrack connected")
|
||||
}
|
||||
|
||||
// SetActivePaddingOnMuteUpTrack will enable padding on the track when its uptrack is muted.
|
||||
|
||||
@@ -421,6 +421,7 @@ func (w *WebRTCReceiver) AddDownTrack(track TrackSender) error {
|
||||
track.UpTrackMaxTemporalLayerSeenChange(w.streamTrackerManager.GetMaxTemporalLayerSeen())
|
||||
|
||||
w.downTrackSpreader.Store(track)
|
||||
w.logger.Debugw("downtrack added", "subscriberID", track.SubscriberID())
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -505,6 +506,7 @@ func (w *WebRTCReceiver) DeleteDownTrack(subscriberID livekit.ParticipantID) {
|
||||
}
|
||||
|
||||
w.downTrackSpreader.Free(subscriberID)
|
||||
w.logger.Debugw("downtrack deleted", "subscriberID", subscriberID)
|
||||
}
|
||||
|
||||
func (w *WebRTCReceiver) sendRTCP(packets []rtcp.Packet) {
|
||||
|
||||
Reference in New Issue
Block a user