Analytics events + stats (#187)

* events

* bump

* update incoming stats

* publisher stats

* outgoing rtcp

* stats

* remove unnecessary struct

* merge mediaTrack

* put comment back
This commit is contained in:
David Colburn
2021-11-12 16:36:10 -06:00
committed by GitHub
parent 6500ce262d
commit 92838d75a8
12 changed files with 414 additions and 160 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ func newPeerConnection(params TransportParams) (*webrtc.PeerConnection, *webrtc.
se.DisableMediaEngineCopy(true)
ir := &interceptor.Registry{}
if params.Telemetry != nil {
// intercept pub -> SFU rtcp for analytics
if params.Telemetry != nil && params.Target == livekit.SignalTarget_PUBLISHER {
f := params.Telemetry.NewStatsInterceptorFactory(params.ParticipantID, params.ParticipantIdentity)
ir.Add(f)
}