@oxvo/ai-live-assist 7.5.6 → 7.5.9
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/cjs/AiLiveAssist.d.ts +1 -1
- package/cjs/context.d.ts +3 -0
- package/cjs/context.js +207 -77
- package/cjs/liveControlChannel.d.ts +1 -1
- package/cjs/types.d.ts +8 -0
- package/cjs/ui.js +8 -9
- package/cjs/version.d.ts +1 -1
- package/cjs/version.js +1 -1
- package/cjs/voicePresenceUi.js +8 -2
- package/lib/AiLiveAssist.d.ts +1 -1
- package/lib/context.d.ts +3 -0
- package/lib/context.js +207 -77
- package/lib/liveControlChannel.d.ts +1 -1
- package/lib/types.d.ts +8 -0
- package/lib/ui.js +8 -9
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/voicePresenceUi.js +8 -2
- package/package.json +1 -1
package/cjs/ui.js
CHANGED
|
@@ -4885,16 +4885,15 @@ class WidgetView {
|
|
|
4885
4885
|
this.syncSurfaceEffectOwner();
|
|
4886
4886
|
}
|
|
4887
4887
|
setRemoteStream(stream) {
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4888
|
+
if (this.destroyed || this.audio.srcObject === stream)
|
|
4889
|
+
return;
|
|
4890
|
+
// Rebinding the same stream restarts media loading, including its playout buffer.
|
|
4891
|
+
this.invalidateRemotePlayback();
|
|
4891
4892
|
this.audio.srcObject = stream;
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
this.bindRemoteAudioTrackState(stream);
|
|
4897
|
-
}
|
|
4893
|
+
this.boundRemoteAudioStreams = new WeakSet();
|
|
4894
|
+
this.boundRemoteAudioTracks = new WeakSet();
|
|
4895
|
+
this.bindPlaybackState();
|
|
4896
|
+
this.bindRemoteAudioTrackState(stream);
|
|
4898
4897
|
void this.playRemoteAudio();
|
|
4899
4898
|
}
|
|
4900
4899
|
bindRemoteAudioTrackState(stream) {
|
package/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.5.
|
|
1
|
+
export declare const VERSION = "7.5.9";
|
package/cjs/version.js
CHANGED
package/cjs/voicePresenceUi.js
CHANGED
|
@@ -1309,6 +1309,8 @@ class VoicePresenceView {
|
|
|
1309
1309
|
const previous = this.audio.srcObject;
|
|
1310
1310
|
const streamChanged = previous !== stream;
|
|
1311
1311
|
const analysisChanged = !this.outputAnalyserMatchesStream(stream);
|
|
1312
|
+
if (!streamChanged && !analysisChanged)
|
|
1313
|
+
return;
|
|
1312
1314
|
if (streamChanged) {
|
|
1313
1315
|
this.playbackGeneration += 1;
|
|
1314
1316
|
this.playbackResumePending = false;
|
|
@@ -1329,9 +1331,11 @@ class VoicePresenceView {
|
|
|
1329
1331
|
this.emitPlaybackState("waiting");
|
|
1330
1332
|
this.syncPresenceFromPlayback();
|
|
1331
1333
|
}
|
|
1332
|
-
|
|
1333
|
-
if (streamChanged)
|
|
1334
|
+
// Track-set changes can rebuild analysis without reloading ongoing playout.
|
|
1335
|
+
if (streamChanged) {
|
|
1336
|
+
this.audio.srcObject = stream;
|
|
1334
1337
|
this.bindPlaybackState();
|
|
1338
|
+
}
|
|
1335
1339
|
if (previous &&
|
|
1336
1340
|
typeof MediaStream !== "undefined" &&
|
|
1337
1341
|
previous instanceof MediaStream &&
|
|
@@ -1344,6 +1348,8 @@ class VoicePresenceView {
|
|
|
1344
1348
|
this.bindRemoteAudioTrackState(stream);
|
|
1345
1349
|
this.resumeOutputAudioContext();
|
|
1346
1350
|
this.startOutputEvidenceSampling();
|
|
1351
|
+
if (!streamChanged)
|
|
1352
|
+
return;
|
|
1347
1353
|
const generation = this.playbackGeneration;
|
|
1348
1354
|
void this.audio.play().catch(() => {
|
|
1349
1355
|
if (!this.playbackSourceIsCurrent(generation, stream))
|
package/lib/AiLiveAssist.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const normalizeAiGuideOpenInput: (input?: AiGuideOpenInput) => Re
|
|
|
34
34
|
export declare const resolveAiGuideProtocolVersion: (bootstrap: Pick<BootstrapConfig, "experienceMode" | "minimumProtocolVersion" | "protocol">) => 1 | 2;
|
|
35
35
|
export default class AiLiveAssist {
|
|
36
36
|
private readonly options;
|
|
37
|
-
readonly version = "7.5.
|
|
37
|
+
readonly version = "7.5.9";
|
|
38
38
|
private readonly host;
|
|
39
39
|
private readonly guideAdmission;
|
|
40
40
|
private readonly standaloneAdmissionPending;
|
package/lib/context.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare class PageContextCollector {
|
|
|
27
27
|
private targetIds;
|
|
28
28
|
private pageScrollIds;
|
|
29
29
|
private navigationTargetBindings;
|
|
30
|
+
private navigationDisclosureLinks;
|
|
30
31
|
private fieldTargetBindings;
|
|
31
32
|
private fieldAppliedRevisions;
|
|
32
33
|
private textIds;
|
|
@@ -70,6 +71,8 @@ export declare class PageContextCollector {
|
|
|
70
71
|
private type;
|
|
71
72
|
private select;
|
|
72
73
|
private submit;
|
|
74
|
+
private exposedNavigationLinks;
|
|
75
|
+
private expandedState;
|
|
73
76
|
private safeState;
|
|
74
77
|
private scrollTargetIntoView;
|
|
75
78
|
private waitForScrollSettlement;
|