-
Notifications
You must be signed in to change notification settings - Fork 8
media: add flag to enable ICE renomination #549
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?
Conversation
🦋 Changeset detectedLatest commit: 4c8b80d The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
f3c0ae6 to
353d4ef
Compare
|
We may need to white list the browsers that we know that supports this feature, or |
8754196 to
20452f0
Compare
20452f0 to
fb346a6
Compare
fb346a6 to
544d60c
Compare
c85abe0 to
eb32484
Compare
df5ec5f to
4b48246
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected] |
4b48246 to
415b8e7
Compare
415b8e7 to
5a15972
Compare
| // replace `a=ice-options:trickle` with `a=ice-options:trickle renomination` | ||
| // https://datatracker.ietf.org/doc/html/draft-thatcher-ice-renomination-00 | ||
| export function enableIceRenomination(sdp: any) { | ||
| if (browserName === "firefox") { |
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.
These browserName === "firefox" conditions can be problematic in FF nightly with media.navigator.mozgetusermedia.enabled = false. The webrtc-adapter returns "Not a supported browser." in this case in firefox, therefore these conditions are going to be falsy.
The related issue: webrtcHacks/adapter#1160 could fix that, but maybe it would be safer to parse the useragent on our own instead. (?)
ad046af to
c5832d4
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected] |
|
Have you confirmed any difference in ICE behavior from this?
That draft expired in 2017. From my testing with https://jsfiddle.net/jib1/6h75teaj/ no browser negotiates (responds in kind in an answer to an offer containing)
I don't think so. Even if I munge both ends https://jsfiddle.net/jib1/6h75teaj/34/ none of the browsers fail sLD/sRD. This matches my understanding of SDP which lets end-points advertise and negotiate a shared subset of support, without failure. Hopefully there's no need for UA-sniff here. If there's some feature enabled by this, we'd love to learn what it is so it can be standardized! |
|
Thank you for your input! 🙏
We did a few measurements by running the example scenario from the linked draft. In most tests, we experienced slightly faster reconnects when the Starting Chrome with We're investigating how to measure the impact of this flag.
There's no need to add any UA-sniff here. I thought first Firefox ignores the SDP if it has this |
c5832d4 to
4c8b80d
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected]yarn add @whereby.com/[email protected] |


Description
Summary:
Enable
renominationif theiceRenominationOnfeature is enabled.Testing
iceRenominationOnrenominationkeyword should appear in aa=ice-optionsline.Screenshots/GIFs (if applicable)
Checklist
under the terms of the MIT license.
Additional Information
Read more about the renomination draft here: https://datatracker.ietf.org/doc/html/draft-thatcher-ice-renomination-01