In the modern getStats() API, the RTCMediaStreamTrackStats (type == "track") dictionary was made obsolete in the spec due to not working as intended in the case of simulcast, where one RTCRtpSender has several RTP streams (e.g. resolution and frame rate having several values, one for each layer, but there just being one "track").
- The "track" metrics are already available in RTCOutboundRtpStreamStats (type == "outbound-rtp"), which in the case of singlecast is approximately the same as "track" and in the case of simulcast exposes one set of metrics per simulcast layer (as several "outbound-rtp" stats objects).
- In the inbound case, there is only ever one layer, and the "track" metrics already exists in RTCInboundRtpStreamStats (type == "inbound-rtp").
- Note that the trackIdentifier is located in "media-source.trackIdentifier" which is accessed via "outbound-rtp.mediaSourceId" in the outbound case, and in "inbound-rtp.trackIdentifier" in the inbound case.
To signify that the "track" stats dictionary is becoming deprecated, the RTCStats id of RTCMediaStreamTrackStats is getting prefixed with "DEPRECATED_".
For now, the "track" metrics will still be available in getStats(). But in some future milestone (TBD) the "track" stats will be removed.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/22de47b4-cd71-48d1-a29f-319c62813052n%40googlegroups.com.