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

Always apply participant update, also on existing participants #840

Closed
wants to merge 3 commits into from

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Aug 17, 2023

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

🦋 Changeset detected

Latest commit: cf3b8f7

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 a review from davidzhao August 17, 2023 07:41
@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2023

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 75.83 KB (+0.01% 🔺)
dist/livekit-client.umd.js 81.21 KB (+0.04% 🔺)

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

change looks good. though it's strange this is happening.. there is code in place to ensure we first send metadata before the offer comes down.. maybe there's a regression there.

@@ -1447,7 +1444,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)

private getOrCreateParticipant(id: string, info?: ParticipantInfo): RemoteParticipant {
if (this.participants.has(id)) {
return this.participants.get(id) as RemoteParticipant;
const participant = this.participants.get(id) as RemoteParticipant;
if (info) {
Copy link
Member

Choose a reason for hiding this comment

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

ah interesting.. did we skip the map update if the track came before metadata?

we need a way on the server side to ensure this doesn't happen.

@lukasIO
Copy link
Contributor Author

lukasIO commented Aug 18, 2023

do we still want to merge this, even though the issue is probably mitigated with livekit/livekit#1974 ?

@davidzhao
Copy link
Member

do we still want to merge this, even though the issue is probably mitigated with livekit/livekit#1974 ?

hmm your call on this one.. on one hand, it makes the client more resilient.. on the other, it has a side effect of "hiding" real issues.

@lukasIO
Copy link
Contributor Author

lukasIO commented Aug 28, 2023

My take on this is to keep the behaviour as is in order to surface/notice the issues.

But I'm thinking we should then remove the path for tracks to arrive first altogether. It doesn't make a lot of sense to keep a half-broken path around.

@davidzhao
Copy link
Member

Yeah I agree.. I don't think we should have that path anymore.

@lukasIO
Copy link
Contributor Author

lukasIO commented Aug 29, 2023

superseded by #854

@lukasIO lukasIO closed this Aug 29, 2023
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.

None yet

2 participants