From 5ede816e2c7522bcc458c183e94c4051646816bd Mon Sep 17 00:00:00 2001
From: Philipp Hancke
where kind is the kind of the
{{RTCRtpTransceiver}} on which the method is called.
- Due to a recommendation in [[!SDP]], calls to - {{RTCPeerConnection/createAnswer}} SHOULD use only the common - subset of the codec preferences and the codecs that appear in - the offer. For example, if codec preferences are "C, B, A", - but only codecs "A, B" were offered, the answer should only - contain codecs "B, A". However, [[!RFC8829]] allows adding codecs that - were not in the offer, so implementations can behave - differently. -
When {{setCodecPreferences()}} is invoked, the user agent MUST run the following steps: