W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2017

[webrtc-stats] Track stats: track or attachment?

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Jan 2017 12:17:19 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-199185016-1483705037-sysbot+gh@w3.org>
alvestrand has just created a new issue for 

== Track stats: track or attachment? ==
In implementation discussions, it was asked what the stats for a track
 mean for the case where a track is attached to a PC multiple times.

This is not possible using AddTrack, but is possible using 
ReplaceTrack or AddTransceiver.
The WG has previously said that this is "no special treatment" - if 
you ask for a track to be sent twice, it will be sent twice, and 
surface at the receiver as two tracks.

The cleanest way out seems to be to say that the track stats track the
 attachment of the track to an RTCPeerConnection, so that the sequence


will return a stats object with two RTCMediaStreamTrackStats objects 
in it.
For receivers, there is no such discrepancy, because a track is always
 sourced from a single receiver, and can't be detached from it.

@taylor-b @henbos @jan-ivar - comments requested.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-stats/issues/130 using your GitHub 
Received on Friday, 6 January 2017 12:17:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:24 UTC