Skip to content

Clean up simulcast codecs in unpublish #332

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

Merged
merged 6 commits into from
Jul 20, 2022
Merged

Clean up simulcast codecs in unpublish #332

merged 6 commits into from
Jul 20, 2022

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jul 18, 2022

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 18, 2022

🦋 Changeset detected

Latest commit: 0a0ea9a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO lukasIO requested review from cnderrauber and davidzhao July 18, 2022 15:44
@lukasIO lukasIO marked this pull request as ready for review July 18, 2022 15:44
}
}
track.simulcastCodecs.clear();
}
this.engine.negotiate();
Copy link
Member

Choose a reason for hiding this comment

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

how should it be handled if we are able to remove the primary track, but not simulcasted ones? it seems that we should still negotiate regardless right?

perhaps moving this outside of this try/catch block, and negotiating if (hasChanged)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point! putting negotiate in finally could also work!

@lukasIO lukasIO merged commit b3df000 into main Jul 20, 2022
@lukasIO lukasIO deleted the lukas/multicodec branch July 20, 2022 14:10
@github-actions github-actions bot mentioned this pull request Jul 20, 2022
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