-
I've dug a little bit in the code and I've found I can do the following : var p *PeerConnection
r := p.GetStats()
s, ok := r["sctpTransport"] // It seems this is a static stat id in the lib
if !ok {
return
}
a, ok := s.(webrtc.TransportStats)
if !ok {
return
}
fmt.Println("%+v", a.BytesReceived) However it feels weird and it returns zero values for the I've checked other available Hence my question: is there a proper way to retrieve Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, just wondering if anybody has an update on this question. Cheers |
Beta Was this translation helpful? Give feedback.
-
Answering my own question here: using the new awesome Stats interceptor now allows us to get each track RTP stream stats cleanly ❤️ |
Beta Was this translation helpful? Give feedback.
Answering my own question here: using the new awesome Stats interceptor now allows us to get each track RTP stream stats cleanly ❤️