@ai-matrx/meet 0.11.54 → 0.11.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/core.cjs +10 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +10 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +10 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +10 -2
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs.map +1 -1
- package/dist/skins/meet.js.map +1 -1
- package/package.json +3 -3
package/dist/react.cjs
CHANGED
|
@@ -7780,14 +7780,22 @@ function createLiveKitDriver(handlers, options = {}) {
|
|
|
7780
7780
|
...options.roomOptions
|
|
7781
7781
|
});
|
|
7782
7782
|
const reasonName = (reason) => reason === void 0 || reason === null ? null : module2.DisconnectReason?.[reason] ?? String(reason);
|
|
7783
|
-
const
|
|
7783
|
+
const emitRoster = () => {
|
|
7784
|
+
rosterQueued = false;
|
|
7785
|
+
if (room !== created) return;
|
|
7784
7786
|
const local = snapshotParticipant(created.localParticipant, true);
|
|
7785
7787
|
const remotes = [...created.remoteParticipants.values()].map(
|
|
7786
7788
|
(participant) => snapshotParticipant(participant, false)
|
|
7787
7789
|
);
|
|
7788
7790
|
handlers.participants([local, ...remotes]);
|
|
7789
7791
|
};
|
|
7790
|
-
|
|
7792
|
+
let rosterQueued = false;
|
|
7793
|
+
const roster = () => {
|
|
7794
|
+
if (rosterQueued) return;
|
|
7795
|
+
rosterQueued = true;
|
|
7796
|
+
queueMicrotask(emitRoster);
|
|
7797
|
+
};
|
|
7798
|
+
projectRoster = emitRoster;
|
|
7791
7799
|
created.on(RoomEvent.TrackSubscribed, (track) => {
|
|
7792
7800
|
if (track.kind !== Track.Kind.Audio || typeof document === "undefined") return;
|
|
7793
7801
|
if (!remoteAudioPlayback) return;
|