In scenarios (1), (2), (3), or a combination of (2) and (3), the active property in the outbound-rtp report from getStats() still shows true.
These scenarios appear correct—no packets are being sent to the remote side. But is it normal that the active property remains true ? What does it mean ?
Should I explicitly set it to false to indicate that the media is intentionally not being sent?
Thanks for any clarification
--
This list falls under the WebRTC Code of Conduct - https://webrtc.org/support/code-of-conduct.
---
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 visit https://groups.google.com/d/msgid/discuss-webrtc/d2b52ac3-bac7-4e95-8b17-7b4ff06f6839n%40googlegroups.com.
“My concern is that this property doesn’t accurately reflect the actual behavior. In scenarios (1), (2), or (3), the encoding is no longer being sent:
• In (1) and (2), the track has been removed, so encoding is no longer possible.
• In (3), the track is still present and encoding could occur, but frames are not being sent.”
And from the getStats side, there is the property "active" in the outbound-rtp report.
From the spec:
active of type boolean
Indicates whether this RTP stream is configured to be sent or disabled
Here I don't understand what is the meaning behind "disabled" and if this statistic is the exact translation of the encodings[0].active property.
To be complete, my core issue is that when computing statistics on a stream, I need to reliably detect when a stream transitions from active to inactive, so I don’t mistakenly flag intentional behavior (like disabling video) as a problem.
Is there a way to do this using only the WebRTC statistics API—without relying on application-level events (like clicking a ‘remove video’ button) or parsing the SDP? In other words, are the statistics sufficient on their own?”
--> For Outbound stream, I'm relying on the outbound-rtp.active statistic.
--> For Inbound stream, I don't have an equivalent. So I take the statistic lastpacketreceivedtimestamp as an equivalent. But it can reflect something else...
Hope this clarifies what's unclear on my side :-)
Thanks
To view this discussion visit https://groups.google.com/d/msgid/discuss-webrtc/d9142bf1-b3c6-4f0a-9d50-980a06101193n%40googlegroups.com.


To view this discussion visit https://groups.google.com/d/msgid/discuss-webrtc/b23a6e38-d02b-4f85-ad68-9688f992125dn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/discuss-webrtc/878ae677-e8b6-4c59-aa02-4ca76899e4f9n%40googlegroups.com.