scandoc-ai-components 0.1.13 → 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.
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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) {
|