-
Notifications
You must be signed in to change notification settings - Fork 115
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
Separate Send/ReceiveCodecs and NegotiatedCodecs #2972
base: main
Are you sure you want to change the base?
Conversation
This makes it unambiguous what to return in RTCRtpSender/Receiver's getParameters() function (null before negotiation, filled in after) Fixes: 2956
Set NegotiatedCodecs only on answers for both senders and receivers.
In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3
In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347}
In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347}
In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347}
…the right time., a=testonly Automatic update from web-platform-tests Add tests for if codec info surfaces at the right time. In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347} -- wpt-commits: 4d7ec06c827c841bfe9090a92521de6a2fb265cf wpt-pr: 46840
…the right time., a=testonly Automatic update from web-platform-tests Add tests for if codec info surfaces at the right time. In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347} -- wpt-commits: 4d7ec06c827c841bfe9090a92521de6a2fb265cf wpt-pr: 46840
…the right time., a=testonly Automatic update from web-platform-tests Add tests for if codec info surfaces at the right time. In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347} -- wpt-commits: 4d7ec06c827c841bfe9090a92521de6a2fb265cf wpt-pr: 46840
…the right time., a=testonly Automatic update from web-platform-tests Add tests for if codec info surfaces at the right time. In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <htachromium.org> Reviewed-by: Florent Castelli <orphischromium.org> Cr-Commit-Position: refs/heads/main{#1317347} -- wpt-commits: 4d7ec06c827c841bfe9090a92521de6a2fb265cf wpt-pr: 46840 UltraBlame original commit: b98fa37e2e0425dbfe0f272d58e1c9e0486ec712
…the right time., a=testonly Automatic update from web-platform-tests Add tests for if codec info surfaces at the right time. In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <htachromium.org> Reviewed-by: Florent Castelli <orphischromium.org> Cr-Commit-Position: refs/heads/main{#1317347} -- wpt-commits: 4d7ec06c827c841bfe9090a92521de6a2fb265cf wpt-pr: 46840 UltraBlame original commit: b98fa37e2e0425dbfe0f272d58e1c9e0486ec712
In support of landing this spec PR: w3c/webrtc-pc#2972 Bug: None Change-Id: I698276ccf739a872d791fc0923c2725ec303fbd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642762 Commit-Queue: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#1317347}
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 sender.getParameters().codecs
might include remote codecs not found locally, but found in the remote answer, which JSEP seems to allow: "Any currently available media formats that are not present in the current remote description MUST be added after all existing formats."
Why is this new limitation needed?
It's also unclear what constitutes a "matching codec description".
This makes it unambiguous what to return in RTCRtpSender/Receiver's getParameters() function (null before negotiation, filled in after, which corresponds to implementations).
Fixes #2956
Preview | Diff