scandoc-ai-components 0.1.12 → 0.1.14

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11375,7 +11375,7 @@ class ExtractorVideo {
11375
11375
  data: extractionData
11376
11376
  });
11377
11377
  if (shouldStop === true) {
11378
- setTimeout(() => this.analyzeVideoStream(), ExtractorVideo.FREQUENCY_MS);
11378
+ setTimeout(() => this.startVideo(), ExtractorVideo.FREQUENCY_MS);
11379
11379
  }
11380
11380
  } else {
11381
11381
  this.onExtractedResults({
@@ -11383,7 +11383,7 @@ class ExtractorVideo {
11383
11383
  code: "005",
11384
11384
  info: "Document validation passed but extraction failed."
11385
11385
  });
11386
- setTimeout(() => this.analyzeVideoStream(), ExtractorVideo.FREQUENCY_MS);
11386
+ setTimeout(() => this.startVideo(), ExtractorVideo.FREQUENCY_MS);
11387
11387
  }
11388
11388
  }
11389
11389
  async startVideo() {
@@ -11400,6 +11400,10 @@ class ExtractorVideo {
11400
11400
  const cfgValues = (0,_config__WEBPACK_IMPORTED_MODULE_1__.getScanDocAIConfigValues)();
11401
11401
  const mode = cfgValues.VIDEO_FACING_MODE ?? "environment";
11402
11402
  let stream;
11403
+ const track = stream.getVideoTracks()[0];
11404
+ console.log("track label:", track.label);
11405
+ console.log("track settings:", track.getSettings());
11406
+ console.log("track capabilities:", track.getCapabilities?.());
11403
11407
  try {
11404
11408
  stream = await navigator.mediaDevices.getUserMedia(buildDocumentScanConstraints(mode));
11405
11409
  } catch (e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scandoc-ai-components",
3
3
  "author": "ScanDoc-AI",
4
- "version": "0.1.12",
4
+ "version": "0.1.14",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [