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

Allow setting RtpEncodingParameters for individual encodings #173

Closed

Conversation

t-mullen
Copy link
Contributor

Description

Adds an optional second parameter to Producer::setRtpEncodingParameters that allows applications to specify the index of the encoding to modify. Not providing this second parameter will modify all encodings just like before.

Usecases

I have a few uses for this - just some examples:

  1. Disabling lower-indexed encodings (similar to setMaxSpatialLayer but reversed).
  2. Modifying scaleResolutionDownBy depending on the current source resolution of the track.

@t-mullen t-mullen changed the title Allow setting RtpEncodingParameter for individual encodings Allow setting RtpEncodingParameters for individual encodings Jul 14, 2021
@nazar-pc
Copy link
Contributor

In Firefox encodings are in the reverse order comparing to other browsers, this doesn't seem to account for that.

@t-mullen t-mullen closed this Jul 14, 2021
@t-mullen
Copy link
Contributor Author

t-mullen commented Jul 14, 2021

After some discussion elsewhere, going to reopen with an a slightly different API. #174

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

Successfully merging this pull request may close these issues.

2 participants