@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/index.js
CHANGED
|
@@ -4910,14 +4910,22 @@ function createLiveKitDriver(handlers, options = {}) {
|
|
|
4910
4910
|
...options.roomOptions
|
|
4911
4911
|
});
|
|
4912
4912
|
const reasonName = (reason) => reason === void 0 || reason === null ? null : module.DisconnectReason?.[reason] ?? String(reason);
|
|
4913
|
-
const
|
|
4913
|
+
const emitRoster = () => {
|
|
4914
|
+
rosterQueued = false;
|
|
4915
|
+
if (room !== created) return;
|
|
4914
4916
|
const local = snapshotParticipant(created.localParticipant, true);
|
|
4915
4917
|
const remotes = [...created.remoteParticipants.values()].map(
|
|
4916
4918
|
(participant) => snapshotParticipant(participant, false)
|
|
4917
4919
|
);
|
|
4918
4920
|
handlers.participants([local, ...remotes]);
|
|
4919
4921
|
};
|
|
4920
|
-
|
|
4922
|
+
let rosterQueued = false;
|
|
4923
|
+
const roster = () => {
|
|
4924
|
+
if (rosterQueued) return;
|
|
4925
|
+
rosterQueued = true;
|
|
4926
|
+
queueMicrotask(emitRoster);
|
|
4927
|
+
};
|
|
4928
|
+
projectRoster = emitRoster;
|
|
4921
4929
|
created.on(RoomEvent.TrackSubscribed, (track) => {
|
|
4922
4930
|
if (track.kind !== Track.Kind.Audio || typeof document === "undefined") return;
|
|
4923
4931
|
if (!remoteAudioPlayback) return;
|