-
Notifications
You must be signed in to change notification settings - Fork 119
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
some type fixes + deduplicate setTargetBitrate #280
base: master
Are you sure you want to change the base?
Conversation
also, make setTargetBitrate and setTargetBitrateAsync consistent before deduplication
make both functions consistent, applying the changes that 2951d62 did to setTargetBitrate also to setTargetBitrateAsync
fbbade0
to
f4bc272
Compare
how about removing the non async version completely instead? |
oh, but we're still using it in StreamView, aren't we? and I thought we wanted to avoid blocking the event loop so frequently |
I mean to keep only the async version |
ah sorry, misread. I'm perfectly okay with it, I'll replace the last commit |
f4bc272
to
08e2520
Compare
it is done |
08e2520
to
1184e1f
Compare
tests are failing after swapping |
this PR first makes setTargetBitrateAsync consistent with setTargetBitrate,
and then factors out most of the logic (common to both) to a new private function called
__setTargetBitrate
.to do this, we move the call to
getActiveLayers
(orgetActiveLayersAsync
) up in the function, which could have small side effects. please see the commit message for more info