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

Should RTCRtptransceiver.stop() cause inbound-rtp stats to disappear?

Open jan-ivar opened this issue 1 year ago • 0 comments

This language on RTP stats seems to go against https://github.com/w3c/webrtc-stats/issues/26: "RTP monitored objects are deleted when the corresponding RTP sender or RTP receiver is reconfigured to remove the corresponding RTP stream. This happens for the old SSRC when the ssrc changes, a simulcast layer is dropped or the RTCRtpTransceiver's currentDirection becomes "stopped"".

The "receiver is reconfigured" part seems fine, and probably describes intent, that things stick around until replaced.

But this part: "This happens ... when ...the RTCRtpTransceiver's currentDirection becomes "stopped"" ends up meaning stats are deleted on pc.close (which will stop the RTCRtpTransceiver, causing currentDirection to "return "stopped"").

jan-ivar avatar Feb 26 '24 17:02 jan-ivar