Skip to content

Conversation

@boks1971
Copy link
Contributor

@boks1971 boks1971 commented Nov 14, 2024

It was not running at all in the following scenario

  • existing room with a participant
  • join from Go SDK participant
  • somehow get a deferred update (needs more investigation if server is sending the track before participant update or Go SDK has a race, probably Go SDK as this happens even before JoinResponse is processed)
  • that deferred track subscribe never runs as there are no more remote participant updates
  • even if there were remote participant updates, it ran only when the SID changed.

Fix it by running it more gratuitously (after remote participant is created or getting another track subscribe).

There is the issue of track going away before defer can run. Have to work on that.
UPDATE on ☝️ : Added code to clear defers on unpublish in this commit.

It was not running at all in the following scenario
- existing room with a participant
- join from Go SDK participant
- somehow get a deferred update (needs more investigation if server is
  sending the track before participant update or Go SDK has a race,
  probably Go SDK as this happens even before JoinResponse is processed)
- that deferred track subscribe never runs as there are no more remote
  participant updates
- even if there were remote participant updates, it ran only when the
  SID changed.

Fix it by running it more gratuitously (after remote participant is
created or getting another track subscribe).

There is the issue of track going away before defer can run. Have to
work on that.
@boks1971 boks1971 requested a review from a team November 14, 2024 13:51
@boks1971 boks1971 merged commit ffee242 into main Nov 14, 2024
1 check passed
@boks1971 boks1971 deleted the raja_defers branch November 14, 2024 17:48
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