Re: [webrtc-encoded-transform] expose RTP sequence numbers (#166)

Some context - the short seqno in the RTP header wraps every 64k packets. That's every ~21 mins with a 20ms audio ptime. 
At the wrap time some packets will appear (to the naive javascript coder) to be out of order, so they will need to detect the wrap and create and maintain a rollover counter to compensate (adding state). This is exactly the process that the SRTP
 stack has already carried out in order to decrypt the packets. (What's more the decryption serves as a verification that out-of-order packets have been correctly handled - it fails if you get index wrong).
 
So if it is practical I recommend that we expose the long index - applications can always get the short seqno by ignoring the upper bits.
 
 

-- 
GitHub Notification of comment by steely-glint
Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/166#issuecomment-1344526526 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 9 December 2022 16:45:33 UTC