webrtc-stats icon indicating copy to clipboard operation
webrtc-stats copied to clipboard

Home of ended, trackIdentifier and kind

Open henbos opened this issue 5 years ago • 1 comments

These used to exist on the "track" stats and currently remain on the handler stats (a.k.a. "sender" and "receiver").

Decide whether they should remain here or if we want to move stuff to "media-source" and/or "inbound-rtp".

This is worth looking at after having made "track" stats obsolete.

henbos avatar Jan 15 '20 14:01 henbos

These have different properties. In particular, track.clone() will result in two tracks with different "id", but "ended" will turn true at the same time for both, and of course "kind" will be the same.

I'm in favor of putting ended and kind on the source-objects (source or rtpreceiver). If "id" has a place in stats, it needs to be on rtpsender ("id of current outgoing track").

alvestrand avatar Jan 16 '20 16:01 alvestrand

I think this has either been resolved already or no longer applicable, and we can always add new metrics if we want ended, but I don't think that is needed in stats

henbos avatar Oct 18 '22 13:10 henbos