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

Pre-allocate transceivers #3317

Closed
wants to merge 3 commits into from
Closed

Pre-allocate transceivers #3317

wants to merge 3 commits into from

Conversation

SimonBrandner
Copy link
Contributor

@SimonBrandner SimonBrandner commented Apr 25, 2023

Fixes element-hq/element-call#1011


Here's what your changelog entry will look like:

✨ Features

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
for (const kind of ["audio", "video"]) {
this.peerConn!.addTransceiver(kind, {
direction: "recvonly",
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm interesting. We creating every time a new transceiver, when we receive a screenshare. I was thinking thats this will done automatically.. I did not know that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really. We do this in the case where we are going to be calling a user who is screen-sharing, so we need prepare receivers for the tracks

@SimonBrandner SimonBrandner added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Apr 26, 2023
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always allocate video and audio tracks
2 participants