livekit-client 1.8.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/README.md +9 -7
  2. package/dist/livekit-client.esm.mjs +13550 -13342
  3. package/dist/livekit-client.esm.mjs.map +1 -1
  4. package/dist/livekit-client.umd.js +1 -1
  5. package/dist/livekit-client.umd.js.map +1 -1
  6. package/dist/src/api/SignalClient.d.ts +11 -10
  7. package/dist/src/api/SignalClient.d.ts.map +1 -1
  8. package/dist/src/connectionHelper/ConnectionCheck.d.ts +1 -1
  9. package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
  10. package/dist/src/connectionHelper/checks/Checker.d.ts +1 -1
  11. package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +5 -7
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/proto/livekit_models.d.ts +5 -0
  15. package/dist/src/proto/livekit_models.d.ts.map +1 -1
  16. package/dist/src/proto/livekit_rtc.d.ts +32 -0
  17. package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
  18. package/dist/src/room/PCTransport.d.ts.map +1 -1
  19. package/dist/src/room/RTCEngine.d.ts +5 -3
  20. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  21. package/dist/src/room/Room.d.ts +20 -15
  22. package/dist/src/room/Room.d.ts.map +1 -1
  23. package/dist/src/room/events.d.ts +15 -0
  24. package/dist/src/room/events.d.ts.map +1 -1
  25. package/dist/src/room/participant/LocalParticipant.d.ts +14 -2
  26. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  27. package/dist/src/room/participant/Participant.d.ts +4 -2
  28. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  29. package/dist/src/room/participant/RemoteParticipant.d.ts +2 -2
  30. package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
  31. package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
  32. package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
  33. package/dist/src/room/track/LocalTrack.d.ts +1 -1
  34. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  35. package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
  36. package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
  37. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  38. package/dist/src/room/track/RemoteAudioTrack.d.ts +1 -1
  39. package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
  40. package/dist/src/room/track/create.d.ts.map +1 -1
  41. package/dist/src/room/track/options.d.ts +7 -1
  42. package/dist/src/room/track/options.d.ts.map +1 -1
  43. package/dist/src/room/types.d.ts +1 -0
  44. package/dist/src/room/types.d.ts.map +1 -1
  45. package/dist/src/room/utils.d.ts +3 -0
  46. package/dist/src/room/utils.d.ts.map +1 -1
  47. package/dist/ts4.2/src/api/SignalClient.d.ts +14 -10
  48. package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +1 -1
  49. package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +1 -1
  50. package/dist/ts4.2/src/index.d.ts +6 -7
  51. package/dist/ts4.2/src/proto/livekit_models.d.ts +5 -0
  52. package/dist/ts4.2/src/proto/livekit_rtc.d.ts +32 -0
  53. package/dist/ts4.2/src/room/RTCEngine.d.ts +5 -3
  54. package/dist/ts4.2/src/room/Room.d.ts +20 -15
  55. package/dist/ts4.2/src/room/events.d.ts +15 -0
  56. package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +14 -2
  57. package/dist/ts4.2/src/room/participant/Participant.d.ts +4 -2
  58. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -2
  59. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +1 -1
  60. package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
  61. package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +1 -1
  62. package/dist/ts4.2/src/room/track/options.d.ts +7 -0
  63. package/dist/ts4.2/src/room/types.d.ts +1 -0
  64. package/dist/ts4.2/src/room/utils.d.ts +3 -0
  65. package/package.json +4 -3
  66. package/src/api/SignalClient.ts +38 -26
  67. package/src/connectionHelper/ConnectionCheck.ts +1 -2
  68. package/src/connectionHelper/checks/Checker.ts +1 -1
  69. package/src/connectionHelper/checks/reconnect.ts +1 -1
  70. package/src/index.ts +8 -10
  71. package/src/proto/livekit_models.ts +15 -0
  72. package/src/room/PCTransport.ts +40 -1
  73. package/src/room/RTCEngine.ts +32 -11
  74. package/src/room/RegionUrlProvider.ts +1 -1
  75. package/src/room/Room.ts +114 -70
  76. package/src/room/events.ts +17 -0
  77. package/src/room/participant/LocalParticipant.ts +65 -11
  78. package/src/room/participant/Participant.ts +27 -3
  79. package/src/room/participant/RemoteParticipant.ts +6 -3
  80. package/src/room/participant/publishUtils.test.ts +1 -1
  81. package/src/room/participant/publishUtils.ts +14 -6
  82. package/src/room/track/LocalAudioTrack.ts +1 -1
  83. package/src/room/track/LocalTrack.ts +2 -2
  84. package/src/room/track/LocalTrackPublication.ts +1 -1
  85. package/src/room/track/LocalVideoTrack.ts +3 -3
  86. package/src/room/track/RemoteAudioTrack.ts +1 -1
  87. package/src/room/track/RemoteVideoTrack.test.ts +1 -1
  88. package/src/room/track/RemoteVideoTrack.ts +3 -3
  89. package/src/room/track/create.ts +2 -2
  90. package/src/room/track/options.ts +14 -1
  91. package/src/room/types.ts +11 -0
  92. package/src/room/utils.ts +18 -8
package/README.md CHANGED
@@ -45,13 +45,12 @@ await room.connect(...);
45
45
 
46
46
  ```typescript
47
47
  import {
48
- connect,
49
- Room,
50
- RoomEvent,
48
+ Participant,
51
49
  RemoteParticipant,
52
- RemoteTrackPublication,
53
50
  RemoteTrack,
54
- Participant,
51
+ RemoteTrackPublication,
52
+ Room,
53
+ RoomEvent,
55
54
  } from 'livekit-client';
56
55
 
57
56
  // creates a new room with options
@@ -296,12 +295,15 @@ You can have a look at the `"browerslist"` section of `package.json` for more de
296
295
  If you are targeting legacy browsers, but still want adaptiveStream functionality you'll likely need to use polyfills for [ResizeObserver](https://www.npmjs.com/package/resize-observer-polyfill) and [IntersectionObserver](https://www.npmjs.com/package/intersection-observer).
297
296
 
298
297
  <!--BEGIN_REPO_NAV-->
298
+
299
299
  <br/><table>
300
+
300
301
  <thead><tr><th colspan="2">LiveKit Ecosystem</th></tr></thead>
301
302
  <tbody>
302
- <tr><td>Core Infra</td><td><a href="https://github.com/livekit/livekit">livekit</a> · <a href="https://github.com/livekit/egress">egress</a> · <a href="https://github.com/livekit/ingress">ingress</a> · <a href="https://github.com/livekit/livekit-cli">livekit-cli</a></td></tr><tr></tr>
303
303
  <tr><td>Client SDKs</td><td><a href="https://github.com/livekit/components-js">Components</a> · <b>JavaScript</b> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/livekit/client-sdk-swift">iOS/macOS</a> · <a href="https://github.com/livekit/client-sdk-android">Android</a> · <a href="https://github.com/livekit/client-sdk-flutter">Flutter</a> · <a href="https://github.com/livekit/client-sdk-unity-web">Unity (web)</a> · <a href="https://github.com/livekit/client-sdk-react-native">React Native (beta)</a></td></tr><tr></tr>
304
- <tr><td>Server SDKs</td><td><a href="https://github.com/livekit/server-sdk-js">Node.js</a> · <a href="https://github.com/livekit/server-sdk-go">Golang</a> · <a href="https://github.com/livekit/server-sdk-ruby">Ruby</a> · <a href="https://github.com/livekit/server-sdk-kotlin">Java/Kotlin</a></td></tr>
304
+ <tr><td>Server SDKs</td><td><a href="https://github.com/livekit/server-sdk-js">Node.js</a> · <a href="https://github.com/livekit/server-sdk-go">Golang</a> · <a href="https://github.com/livekit/server-sdk-ruby">Ruby</a> · <a href="https://github.com/livekit/server-sdk-kotlin">Java/Kotlin</a> · <a href="https://github.com/agence104/livekit-server-sdk-php">PHP (community)</a> · <a href="https://github.com/tradablebits/livekit-server-sdk-python">Python (community)</a></td></tr><tr></tr>
305
+ <tr><td>Services</td><td><a href="https://github.com/livekit/livekit">Livekit server</a> · <a href="https://github.com/livekit/egress">Egress</a> · <a href="https://github.com/livekit/ingress">Ingress</a></td></tr><tr></tr>
306
+ <tr><td>Resources</td><td><a href="https://docs.livekit.io">Docs</a> · <a href="https://github.com/livekit-examples">Example apps</a> · <a href="https://livekit.io/cloud">Cloud</a> · <a href="https://docs.livekit.io/oss/deployment">Self-hosting</a> · <a href="https://github.com/livekit/livekit-cli">CLI</a></td></tr>
305
307
  </tbody>
306
308
  </table>
307
309
  <!--END_REPO_NAV-->