@viji-dev/core 0.3.9 → 0.3.11

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.
@@ -3392,7 +3392,11 @@ class VijiWorkerRuntime {
3392
3392
  parameterSystem;
3393
3393
  // Interaction system (Phase 7)
3394
3394
  interactionSystem;
3395
- // Video systems (multi-stream) - index 0 = main with CV, 1+ = additional without CV
3395
+ // Video systems (multi-stream) - sparse array with reserved index contract:
3396
+ // Index 0: Reserved for main video (with CV) - may be undefined if no main video
3397
+ // Index 1..N: Additional streams (no CV)
3398
+ // Index N+1..: Device streams
3399
+ // IMPORTANT: Index 0 is ALWAYS reserved even when main video is absent
3396
3400
  videoSystems = [];
3397
3401
  // Auto-capture for frame sources
3398
3402
  autoCaptureEnabled = false;
@@ -3684,7 +3688,7 @@ class VijiWorkerRuntime {
3684
3688
  ...this.audioState,
3685
3689
  getFrequencyData: () => this.audioState.frequencyData
3686
3690
  };
3687
- this.videoSystems.forEach((vs) => vs.resetVideoState());
3691
+ this.videoSystems.forEach((vs) => vs?.resetVideoState());
3688
3692
  if (this.videoSystems[0]) {
3689
3693
  Object.assign(this.viji.video, this.videoSystems[0].getVideoAPI());
3690
3694
  }
@@ -4360,4 +4364,4 @@ async function setSceneCode(sceneCode) {
4360
4364
  }
4361
4365
  }
4362
4366
  self.setSceneCode = setSceneCode;
4363
- //# sourceMappingURL=viji.worker-Dq0mIiTV.js.map
4367
+ //# sourceMappingURL=viji.worker-Bus3443t.js.map