@oxvo/ai-live-assist 7.5.8 → 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 +182 -74
- 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 +182 -74
- 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/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.5.
|
|
1
|
+
export declare const VERSION = "7.5.9";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.5.
|
|
1
|
+
export const VERSION = '7.5.9';
|
package/lib/voicePresenceUi.js
CHANGED
|
@@ -1306,6 +1306,8 @@ export class VoicePresenceView {
|
|
|
1306
1306
|
const previous = this.audio.srcObject;
|
|
1307
1307
|
const streamChanged = previous !== stream;
|
|
1308
1308
|
const analysisChanged = !this.outputAnalyserMatchesStream(stream);
|
|
1309
|
+
if (!streamChanged && !analysisChanged)
|
|
1310
|
+
return;
|
|
1309
1311
|
if (streamChanged) {
|
|
1310
1312
|
this.playbackGeneration += 1;
|
|
1311
1313
|
this.playbackResumePending = false;
|
|
@@ -1326,9 +1328,11 @@ export class VoicePresenceView {
|
|
|
1326
1328
|
this.emitPlaybackState("waiting");
|
|
1327
1329
|
this.syncPresenceFromPlayback();
|
|
1328
1330
|
}
|
|
1329
|
-
|
|
1330
|
-
if (streamChanged)
|
|
1331
|
+
// Track-set changes can rebuild analysis without reloading ongoing playout.
|
|
1332
|
+
if (streamChanged) {
|
|
1333
|
+
this.audio.srcObject = stream;
|
|
1331
1334
|
this.bindPlaybackState();
|
|
1335
|
+
}
|
|
1332
1336
|
if (previous &&
|
|
1333
1337
|
typeof MediaStream !== "undefined" &&
|
|
1334
1338
|
previous instanceof MediaStream &&
|
|
@@ -1341,6 +1345,8 @@ export class VoicePresenceView {
|
|
|
1341
1345
|
this.bindRemoteAudioTrackState(stream);
|
|
1342
1346
|
this.resumeOutputAudioContext();
|
|
1343
1347
|
this.startOutputEvidenceSampling();
|
|
1348
|
+
if (!streamChanged)
|
|
1349
|
+
return;
|
|
1344
1350
|
const generation = this.playbackGeneration;
|
|
1345
1351
|
void this.audio.play().catch(() => {
|
|
1346
1352
|
if (!this.playbackSourceIsCurrent(generation, stream))
|