[webrtc-pc] Inconsistent rules for rid in RTCRtpEncodingParameters (#2732)

docfaraday has just created a new issue for https://github.com/w3c/webrtc-pc:

== Inconsistent rules for rid in RTCRtpEncodingParameters ==
Spec says that RFC 8851 is the source of truth:

'rid-id = 1*(alpha-numeric / "-" / "_")'

However, RFC 8852 has very different rules, which are actually more important than SDP BNF:

'As with all SDES items, RtpStreamId and RepairedRtpStreamId are limited to a total of 255 octets in length. RtpStreamId and RepairedRtpStreamId are constrained to contain only alphanumeric characters. For avoidance of doubt, the only allowed byte values for these IDs are decimal 48 through 57, 65 through 90, and 97 through 122'

Some examples:

rid: "" -> Invalid according to 8851, valid according to 8852
rid: "a-z" and rid: "a_z" -> Valid according to 8851, invalid according to 8852
rid: "<insert the complete works of Shakespeare here>" -> Valid according to 8851, invalid according to 8852

I briefly corresponded with abr on this, and his opinion is that 8852 is correct and 8851 is wrong.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2732 using your GitHub account


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

Received on Tuesday, 10 May 2022 22:51:50 UTC