-
Notifications
You must be signed in to change notification settings - Fork 118
Separate Send/ReceiveCodecs and NegotiatedCodecs #2972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
70aa381
50bc218
be077ac
2da8426
805ca44
8991050
10bc207
62f77eb
8dacfdc
ea35721
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1864,9 +1864,9 @@ <h4> | |
<li> | ||
<p> | ||
Set | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[LastStableStateReceiveCodecs]]}} | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[LastStableStateNegotiatedCodecs]]}} | ||
to | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[ReceiveCodecs]]}}. | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[NegotiatedCodecs]]}}. | ||
</p> | ||
</li> | ||
</ol> | ||
|
@@ -2187,24 +2187,6 @@ <h4> | |
<code>false</code>. | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
For each of the codecs that <var>description</var> negotiates for receiving, execute the following steps: | ||
<ol> | ||
<li>Locate the matching codec description in <var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[ReceiveCodecs]]}}.</li> | ||
<li>If the matching codec description is not found, abort these steps.</li> | ||
<li>Set the "enabled" flag in the matching codec description to "true".</li> | ||
</ol> | ||
|
||
</p> | ||
<p class='note'> | ||
If the <var>direction</var> is | ||
{{RTCRtpTransceiverDirection/"sendonly"}} or | ||
{{RTCRtpTransceiverDirection/"inactive"}}, | ||
the receiver is not prepared to receive | ||
anything, and the list will be empty. | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
If <var>description</var> is of type | ||
|
@@ -2244,13 +2226,37 @@ <h4> | |
</li> | ||
<li> | ||
<p> | ||
For each of the codecs that <var>description</var> negotiates for sending, execute the following steps: | ||
Clear the <var>transceiver</var>.{{RTCRtpTransceiver/[[Sender]]}}.{{RTCRtpSender/[[NegotiatedCodecs]]}} slot. | ||
<br> | ||
Then, for each of the codecs that <var>description</var> negotiates for sending, execute the following steps: | ||
<ol> | ||
<li>Locate the matching codec description in <var>transceiver</var>.{{RTCRtpTransceiver/[[Sender]]}}.{{RTCRtpSender/[[SendCodecs]]}}.</li> | ||
<li>If the matching codec description is not found, abort these steps.</li> | ||
Comment on lines
+2231
to
2234
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which steps are aborted here? One of the nested for-loops or sLD/sRD without error? Either seems wrong. Not failing assumes negotiated codecs is a subset of this client's [[SendCodecs]]. The 1.0 spec didn't have this. It said: ![]() ![]() ...which, AFAIK meant Why is this new limitation needed? It's also unclear what constitutes a "matching codec description". |
||
<li>Set the "enabled" flag in the matching codec description to "true".</li> | ||
<li>Add the codec description to the sender's {{RTCRtpSender/[[NegotiatedCodecs]]}} internal slot.</li> | ||
jan-ivar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</ol> | ||
</li> | ||
<li> | ||
<p> | ||
Clear the <var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[NegotiatedCodecs]]}} slot. | ||
<br> | ||
Then, for each of the codecs that <var>description</var> negotiates for receiving, execute the following steps: | ||
<ol> | ||
<li>Locate the matching codec description in <var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[ReceiveCodecs]]}}.</li> | ||
<li>If the matching codec description is not found, abort these steps.</li> | ||
<li>Set the "enabled" flag in the matching codec description to "true".</li> | ||
<li>Add the codec description to the receiver's {{RTCRtpReceiver/[[NegotiatedCodecs]]}} internal slot.</li> | ||
</ol> | ||
|
||
</p> | ||
<p class='note'> | ||
If the <var>direction</var> is | ||
{{RTCRtpTransceiverDirection/"sendonly"}} or | ||
{{RTCRtpTransceiverDirection/"inactive"}}, | ||
the receiver is not prepared to receive | ||
anything, and the list will be empty. | ||
</p> | ||
</li> | ||
<li> | ||
Set <var>transceiver</var>.{{RTCRtpTransceiver/[[Sender]]}}.{{RTCRtpSender/[[LastReturnedParameters]]}} | ||
to <code>null</code>. | ||
|
@@ -2693,9 +2699,9 @@ <h4> | |
<li> | ||
<p> | ||
Set | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[ReceiveCodecs]]}} | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[NegotiatedCodecs]]}} | ||
to | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[LastStableStateReceiveCodecs]]}}. | ||
<var>transceiver</var>.{{RTCRtpTransceiver/[[Receiver]]}}.{{RTCRtpReceiver/[[LastStableStateNegotiatedCodecs]]}}. | ||
</p> | ||
</li> | ||
<li> | ||
|
@@ -8800,6 +8806,9 @@ <h3> | |
[=RTCRtpSender/list of implemented send codecs=], with the "enabled" flag | ||
set in an implementation defined manner. | ||
</p> | ||
<p> | ||
Let <var>sender</var> have a <dfn data-dfn-for="RTCRtpSender">[[\NegotiatedCodecs]]</dfn> internal slot, consisting of {{RTCRtpCodecParameters}}, and initialized to an empty list. | ||
jan-ivar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
</li> | ||
<li class="no-test-needed"> | ||
<p> | ||
|
@@ -9188,8 +9197,7 @@ <h2> | |
<li data-tests= | ||
"RTCRtpParameters-codecs.html,protocol/video-codecs.https.html"> | ||
{{RTCRtpParameters/codecs}} is set to the codecs from the | ||
{{RTCRtpSender/[[SendCodecs]]}} internal slot where the | ||
"enabled" flag is true. | ||
{{RTCRtpSender/[[NegotiatedCodecs]]}} internal slot. | ||
</li> | ||
<li data-tests="RTCRtpParameters-encodings.html"> | ||
{{RTCRtpParameters/rtcp}}.{{RTCRtcpParameters/cname}} is | ||
|
@@ -10225,11 +10233,14 @@ <h3> | |
<a>list of implemented receive codecs</a> for <var>kind</var>, and with the "enabled" flag | ||
set in an implementation defined manner. | ||
</p> | ||
<p> | ||
Let <var>receiver</var> have a <dfn data-dfn-for="RTCRtpReceiver">[[\NegotiatedCodecs]]</dfn> internal slot, consisting of {{RTCRtpCodecParameters}}, and initialized to an empty list. | ||
</p> | ||
</li> | ||
<li id="rtcrtpreceiver-laststablestatereceivecodecs"> | ||
<p> | ||
Let <var>receiver</var> have a | ||
<dfn data-dfn-for="RTCRtpReceiver">[[\LastStableStateReceiveCodecs]]</dfn> internal slot and | ||
<dfn data-dfn-for="RTCRtpReceiver">[[\LastStableStateNegotiatedCodecs]]</dfn> internal slot and | ||
initialize it to an empty list. | ||
</p> | ||
</li> | ||
|
@@ -10507,7 +10518,7 @@ <h2> | |
<p> | ||
{{RTCRtpParameters/codecs}} is set to the value of the | ||
"enabled" codecs from the | ||
{{RTCRtpReceiver/[[ReceiveCodecs]]}} internal slot. | ||
{{RTCRtpReceiver/[[NegotiatedCodecs]]}} internal slot. | ||
</p> | ||
<div class="note"> | ||
Both the local and remote description may affect this | ||
|
Uh oh!
There was an error while loading. Please reload this page.