client-sdk-js
591c2181 - Fix missed TrackPublished events. (#275)

Commit
3 years ago
Fix missed TrackPublished events. (#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
Author
Parents
Loading