@ai-matrx/meet 0.11.50 → 0.11.51
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 +6 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +7 -0
- package/dist/core.d.ts +7 -0
- package/dist/core.js +6 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +57 -28
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.js +57 -28
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs +51 -26
- package/dist/skins/meet.cjs.map +1 -1
- package/dist/skins/meet.js +51 -26
- package/dist/skins/meet.js.map +1 -1
- package/package.json +2 -2
package/dist/core.d.cts
CHANGED
|
@@ -890,6 +890,8 @@ interface MeetSnapshot {
|
|
|
890
890
|
readonly captionsOn: boolean;
|
|
891
891
|
/** Why asking for captions failed, in the server's words (`captions-unavailable`). */
|
|
892
892
|
readonly captionsRefusal: NoteTakerRefusal | null;
|
|
893
|
+
/** `captions_start_timeout_seconds` from the token's knobs; the "Starting captions" ceiling. */
|
|
894
|
+
readonly captionsStartTimeoutSeconds: number;
|
|
893
895
|
/**
|
|
894
896
|
* What the LOCAL participant is actually publishing, and why not when it is
|
|
895
897
|
* not. Attendance never depends on it (see `attendance.ts`): a refused
|
|
@@ -2863,6 +2865,11 @@ interface ConnectionPolicy {
|
|
|
2863
2865
|
* camera so their audio survives (`net-video-auto-off`); 0 = never.
|
|
2864
2866
|
*/
|
|
2865
2867
|
readonly videoAutoOffAfterPoorSeconds: number;
|
|
2868
|
+
/**
|
|
2869
|
+
* `captions_start_timeout_seconds`: how long "Starting captions" may last before the person is
|
|
2870
|
+
* told, honestly, that captions are unavailable (and offered Try again).
|
|
2871
|
+
*/
|
|
2872
|
+
readonly captionsStartTimeoutSeconds: number;
|
|
2866
2873
|
}
|
|
2867
2874
|
/** The knob defaults (§4.3) — what an older server that sends nothing gets. */
|
|
2868
2875
|
declare const DEFAULT_CONNECTION_POLICY: ConnectionPolicy;
|
package/dist/core.d.ts
CHANGED
|
@@ -890,6 +890,8 @@ interface MeetSnapshot {
|
|
|
890
890
|
readonly captionsOn: boolean;
|
|
891
891
|
/** Why asking for captions failed, in the server's words (`captions-unavailable`). */
|
|
892
892
|
readonly captionsRefusal: NoteTakerRefusal | null;
|
|
893
|
+
/** `captions_start_timeout_seconds` from the token's knobs; the "Starting captions" ceiling. */
|
|
894
|
+
readonly captionsStartTimeoutSeconds: number;
|
|
893
895
|
/**
|
|
894
896
|
* What the LOCAL participant is actually publishing, and why not when it is
|
|
895
897
|
* not. Attendance never depends on it (see `attendance.ts`): a refused
|
|
@@ -2863,6 +2865,11 @@ interface ConnectionPolicy {
|
|
|
2863
2865
|
* camera so their audio survives (`net-video-auto-off`); 0 = never.
|
|
2864
2866
|
*/
|
|
2865
2867
|
readonly videoAutoOffAfterPoorSeconds: number;
|
|
2868
|
+
/**
|
|
2869
|
+
* `captions_start_timeout_seconds`: how long "Starting captions" may last before the person is
|
|
2870
|
+
* told, honestly, that captions are unavailable (and offered Try again).
|
|
2871
|
+
*/
|
|
2872
|
+
readonly captionsStartTimeoutSeconds: number;
|
|
2866
2873
|
}
|
|
2867
2874
|
/** The knob defaults (§4.3) — what an older server that sends nothing gets. */
|
|
2868
2875
|
declare const DEFAULT_CONNECTION_POLICY: ConnectionPolicy;
|
package/dist/core.js
CHANGED
|
@@ -216,7 +216,8 @@ var DEFAULT_CONNECTION_POLICY = {
|
|
|
216
216
|
autoRejoin: true,
|
|
217
217
|
autoRejoinMaxAttempts: 5,
|
|
218
218
|
reconnectGraceSeconds: 30,
|
|
219
|
-
videoAutoOffAfterPoorSeconds: 20
|
|
219
|
+
videoAutoOffAfterPoorSeconds: 20,
|
|
220
|
+
captionsStartTimeoutSeconds: 20
|
|
220
221
|
};
|
|
221
222
|
function clampInt(value, min, max, fallback) {
|
|
222
223
|
if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
|
|
@@ -231,7 +232,8 @@ function connectionPolicyFrom(raw) {
|
|
|
231
232
|
autoRejoin: typeof row["auto_rejoin"] === "boolean" ? row["auto_rejoin"] : d.autoRejoin,
|
|
232
233
|
autoRejoinMaxAttempts: clampInt(row["auto_rejoin_max_attempts"], 0, 20, d.autoRejoinMaxAttempts),
|
|
233
234
|
reconnectGraceSeconds: clampInt(row["reconnect_grace_seconds"], 0, 600, d.reconnectGraceSeconds),
|
|
234
|
-
videoAutoOffAfterPoorSeconds: clampInt(row["video_auto_off_after_poor_seconds"], 0, 600, d.videoAutoOffAfterPoorSeconds)
|
|
235
|
+
videoAutoOffAfterPoorSeconds: clampInt(row["video_auto_off_after_poor_seconds"], 0, 600, d.videoAutoOffAfterPoorSeconds),
|
|
236
|
+
captionsStartTimeoutSeconds: clampInt(row["captions_start_timeout_seconds"], 1, 600, d.captionsStartTimeoutSeconds)
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
239
|
var LIVEKIT_BASE_DELAYS_MS = [0, 300, 1200, 2700, 4800, 7e3];
|
|
@@ -3643,6 +3645,7 @@ var EMPTY = {
|
|
|
3643
3645
|
noteTakerRefusal: null,
|
|
3644
3646
|
captionsOn: false,
|
|
3645
3647
|
captionsRefusal: null,
|
|
3648
|
+
captionsStartTimeoutSeconds: 20,
|
|
3646
3649
|
media: IDLE_MEDIA,
|
|
3647
3650
|
mediaRegion: IDLE_MEDIA_REGION,
|
|
3648
3651
|
failure: null,
|
|
@@ -7305,6 +7308,7 @@ function createRoomEngine(options) {
|
|
|
7305
7308
|
current = token;
|
|
7306
7309
|
lastServerUrl = token.serverUrl;
|
|
7307
7310
|
connectionPolicy = token.connectionPolicy ?? DEFAULT_CONNECTION_POLICY;
|
|
7311
|
+
store.patch({ captionsStartTimeoutSeconds: connectionPolicy.captionsStartTimeoutSeconds });
|
|
7308
7312
|
if (token.leavePolicy !== void 0) store.patch({ leavePolicy: token.leavePolicy });
|
|
7309
7313
|
store.patch({ canReclaim: token.canReclaim === true });
|
|
7310
7314
|
store.patch({
|