Skip to content

fix ice-options grammar - #107

Open
fippo wants to merge 1 commit into
clux:masterfrom
fippo:fix-iceoptions
Open

fix ice-options grammar#107
fippo wants to merge 1 commit into
clux:masterfrom
fippo:fix-iceoptions

Conversation

@fippo

@fippo fippo commented Sep 1, 2026

Copy link
Copy Markdown

which dropped everything but a single ice-option (which is the default in webrtc these days).

Do not change the API surface for backward compat.

@fippo

fippo commented Sep 1, 2026

Copy link
Copy Markdown
Author

(looking at https://www.npmjs.com/package/sdp-transform?activeTab=versions this should probably be backported to 2.x)

which dropped everything but a single ice-option (which is the default
in webrtc these days).

Do not change the API surface for backward compat.

@ibc ibc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to also have a write test to see how it behaves

@fippo

fippo commented Sep 1, 2026

Copy link
Copy Markdown
Author

that is what the parser test does. Currently it misreads

a=ice-options:trickle ice2

as

iceOptions: 'trickle'

which the serialization then simply turns into

a=ice-options:trickle

(sadly this does not explain a huge of munging trickle in Chrome stats...)

@ibc

ibc commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

(looking at https://www.npmjs.com/package/sdp-transform?activeTab=versions this should probably be backported to 2.x)

Why? This should go to the next version and not to a previous one. 3.x introduced a breaking change but it doesn't mean that we need to keep 2.x with new stuff forever.

@ibc

ibc commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

I can merge it if ready

@fippo

fippo commented Sep 1, 2026

Copy link
Copy Markdown
Author

well, looking at the numbers there are a lot of people still too laz^W^W stuck on 2.x.

And they will break if Chrome adds a second ice-option and that SDP munging is rejected.

@ibc

ibc commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

well, looking at the numbers there are a lot of people still too laz^W^W stuck on 2.x.

And they will break if Chrome adds a second ice-option and that SDP munging is rejected.

I understand. Unfortunately @clux is no longer maintaining this repository/project so I don't know what to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants