Skip to content
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

web: trim deprecated options and defaults #1685

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

aaronkvanmeerten
Copy link
Member

No description provided.

@aaronkvanmeerten aaronkvanmeerten merged commit 483bbde into master Jan 2, 2024
1 check passed
@aaronkvanmeerten aaronkvanmeerten deleted the config-js-deprecated-options branch January 2, 2024 16:38

config.enableRemb = {{ $ENABLE_REMB }};
config.enableTcc = {{ $ENABLE_TCC }};
{{ if not $ENABLE_REMB -}}
Copy link
Member

Choose a reason for hiding this comment

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

Why go the verbose route? Setting the value always since it has a sane default is a good idea IMHO.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jallamsetty1 and I discussed, and since the code itself has sane defaults, it was felt that an additional default wasn't needed here. Open to reverting that pieces as I don't feel strongly on it.

Copy link
Member

Choose a reason for hiding this comment

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

Right now most settings are set by taking defaults in the template itself.

Generally speaking we have avoided changing defaults drastically, because it leads to problems.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, the current practice is to set the defaults in config.js but for settings that affect the core media functionality, I don't think we should make them configurable anymore. I do not see a reason why we should let users disable REMB, TCC, RTX or simulcast for that matter. IMHO not adding the defaults to the template is a first step in that direction.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we have a setting outside of the testing section for them then?

Not arguing, just curious.

Copy link
Member

Choose a reason for hiding this comment

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

I guess they were added when the features were implemented but we didn't bother to remove them after the default behavior was implemented in code. That happens with a lot of features that we implement. We conditionally enable them, then enable them by default and don't remove the config.js flag.

Copy link
Member

Choose a reason for hiding this comment

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

I see.

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.

3 participants