forked from livekit/client-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missed TrackPublished events. (livekit#275)
* Fix missed TrackPublished events. When initial participant info is sent down along with tracks, we would miss emitting TrackPublished events for them. This is due an incorrect assumption that participants would first join without tracks. Instead of relying on if it's the first update, we now use Room connection state to determine if those TrackPublished events should be emitted or not. * defer TrackSubscribed event until after connected to room. * emit certain events only when connected
- Loading branch information
Showing
4 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'livekit-client': patch | ||
--- | ||
|
||
Fixed TrackPublished events not firing correctly in some cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters