-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add support for simulcast #2983
Conversation
Signed-off-by: Šimon Brandner <[email protected]>
…at/simulcast Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
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.
Generally looks good. I don't fully understand the reason for moving from pushRemoteFeed to pushRemoteStream though?
src/webrtc/call.ts
Outdated
} else { | ||
logger.warn("Didn't find a matching transceiver after adding track!"); | ||
const parameters = transceiver.sender.getParameters(); | ||
if (isFirefox()) { |
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.
Could do with a comment on why the firefox-specific hackery is needed and what has to change so we can get rid of it, especially as it looks like we're doing the same unconditionally on line 856?
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.
Looking at all of this now, it seems we could probably remove some of the hackery but I am not fully confident yet - have created element-hq/element-call#878 and will look at it ASAP
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.
Cool, that's good too.
src/webrtc/call.ts
Outdated
* @param force - whether or not to force the request to be sent immediately | ||
*/ | ||
public subscribeToFocus(force = false): void { | ||
// TODO: Can we throttle this better? |
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.
lodash.throttle / debounce are your friends
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.
We don't have lodash in the js-sdk atm, I've created an issue for this to figure out what is the ideal solution - element-hq/element-call#876
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.
Ah, ok - ftr I'd vote for adding it: it will only pull in the bits you use so it's not expensive.
rid: SimulcastResolution.Quarter, | ||
scaleResolutionDownBy: 4.0, | ||
}, | ||
]; |
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.
Just to note that the bitrates here are probably defined assuming 720p (ie. what we ask for in getUserMedia) but screenshares will be different resolutions, so these figures might not be as sensible for those (plus of course we may not actually get 720p).
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.
So I think they are actually not necessary and we should be fine without setting them - let's see 🤞
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
I liked the name better with the changes made |
Signed-off-by: Šimon Brandner <[email protected]>
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.
Thanks for the fast turnaround - lgtm
Thanks to you, too! |
Based on #2423
Here's what your changelog entry will look like:
✨ Features