stats: Do not count incoming Nack/PLI as outgoing
This commit is contained in:
@@ -66,7 +66,8 @@ func newPeerConnection(params TransportParams) (*webrtc.PeerConnection, *webrtc.
|
|||||||
}
|
}
|
||||||
|
|
||||||
ir := &interceptor.Registry{}
|
ir := &interceptor.Registry{}
|
||||||
if params.Stats != nil {
|
if params.Stats != nil && params.Target == livekit.SignalTarget_SUBSCRIBER {
|
||||||
|
// only capture subscriber for outbound streams
|
||||||
ir.Add(NewStatsInterceptor(params.Stats))
|
ir.Add(NewStatsInterceptor(params.Stats))
|
||||||
}
|
}
|
||||||
api := webrtc.NewAPI(
|
api := webrtc.NewAPI(
|
||||||
|
|||||||
Reference in New Issue
Block a user