You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
7- For each value of i from 0 to the number of codecs, check that each value of withParameters.codecs[i].name not equal to "red", "rtx" or a forward error correction codec is included in getCapabilities(track.kind).codecs[j].name, where j goes from 0 to the number of codecs. If a match is not found for any value of i, return a promise rejected with InvalidParameters.
That is a too much simplistic check. The fact that the codec name matches one in getCapabilities() does not mean, at all, that it is the "same" codec. Lot of scenarios here:
What would happen if send() is called with an "audio/opus" codec that includes rtcpFeedback entries not present in the "audio/opus" codec of the local capabilities?
Or what would happen if clockRate does not match?
Or imagine that local "video/H264" supports packetization-mode 0 and 1, but send() is called with codec.parameters.packetizationMode: 2.
RtpSender.send():That is a too much simplistic check. The fact that the codec
namematches one ingetCapabilities()does not mean, at all, that it is the "same" codec. Lot of scenarios here:send()is called with an "audio/opus" codec that includesrtcpFeedbackentries not present in the "audio/opus" codec of the local capabilities?clockRatedoes not match?packetization-mode0 and 1, butsend()is called withcodec.parameters.packetizationMode: 2.