Commit 4dc3ae5
authored
WebRTCGetStartedVP8Net: log RTP sequence number alongside packet counter (#1582)
Follow-up to #1581. Adds the current RTP sequence number from each
stream's LocalTrack to the per-second 'src' diagnostic line so that
the wrap-around point (seq going from ~65535 to a small number) is
visible in the trace.
Why
---
The data captured under #1581 strongly indicates that audio packets
keep being emitted by the .NET sender ("src" counter and outgoing
RTCP SR PacketCount both increment past the failure timestamp) but
Chrome silently drops them (no packetsLost increment, no
bytesReceived increment). That is the textbook fingerprint of SRTP
authentication failure on the receiver — most plausibly caused by
sender and receiver disagreeing about the SRTP rollover counter
(ROC) at the moment the 16-bit RTP sequence number wraps.
If the hypothesis is correct, the wrap timestamp logged here should
align with the moment Chrome's packetsReceived stalls. The format:
audio src: 10250 packets seq~65530 (~205s at 50 pps)
audio src: 10300 packets seq~50 (~206s at 50 pps) <- wrap
If it doesn't align, the wrap isn't the trigger and the next
candidate to investigate would be TWCC sequence wrap (the
TransportWideCC RTP header extension uses its own 16-bit sequence
across all streams; at ~245 packets/sec total it wraps around
~267 seconds).
Behaviour
---------
Pure observability. No bitstream, timing, or wiring changes from
master. The diagnostic is unconditional like the rest of #1581.
Note: SeqNum exposed by MediaStreamTrack is the *next* sequence
number the track will assign, i.e. one ahead of what was just sent
in the SendVideo / SendAudio call immediately preceding the log
line. So the wrap shows as the logged value transitioning from
near-65535 down to a small number, in the same 1-second log
window as Chrome's audio packetsReceived stalls.
Author attribution: Claude Opus 4.7 (model: claude-opus-4-7),
commissioned by Aaron Clauson — per the convention from #1562.1 parent ffb9989 commit 4dc3ae5
1 file changed
Lines changed: 22 additions & 2 deletions
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
160 | 176 | | |
161 | 177 | | |
162 | 178 | | |
163 | 179 | | |
164 | 180 | | |
165 | 181 | | |
166 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
167 | 187 | | |
168 | 188 | | |
169 | 189 | | |
| |||
0 commit comments