@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/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "7.5.8";
1
+ export declare const VERSION = "7.5.9";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.5.8';
1
+ export const VERSION = '7.5.9';
@@ -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
- this.audio.srcObject = stream;
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))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oxvo/ai-live-assist",
3
3
  "description": "Secure AI Guide browser plugin for OXVO Sessions.",
4
- "version": "7.5.8",
4
+ "version": "7.5.9",
5
5
  "keywords": [
6
6
  "ai-live-assist",
7
7
  "webrtc",