Open jan-ivar opened 2 weeks ago
Actually [[PreferredCodecs]] includes send codecs if set by this section:
Agree that this is unclear. Ideally, we should validate it over the set of codecs in the remote description, if set; if remote description is not set, it seems to me that it can only be validated over the set of implemented send codecs. (And we may want to include language saying that we enable any implemented send codec that is selected by setParameters).
Actually [[PreferredCodecs]] includes send codecs if set by this section:
Agree that this is unclear. Ideally, we should validate it over the set of codecs in the remote description, if set; if remote description is not set, it seems to me that it can only be validated over the set of implemented send codecs. (And we may want to include language saying that we enable any implemented send codec that is selected by setParameters).
I don't see that section setting [[PreferredCodecs]]. It does seem to assume that [[PreferredCodecs]] might contain send codecs, but I do not see anywhere that will put send codecs in there. The language probably needs to be updated to reflect that this will only contain recv codecs.
Step 4 of the setParameters validation steps says: "If choosableCodecs is an empty list, set choosableCodecs to transceiver.[[PreferredCodecs]].".
transceiver.[[PreferredCodecs]] are receive codecs set through setCodecPreferences and shouldn't be used to validate send codec.