scandoc-ai-components 0.0.23 → 0.0.24
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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11285,7 +11285,9 @@ class ExtractorVideo {
|
|
|
11285
11285
|
}
|
|
11286
11286
|
}
|
|
11287
11287
|
}).finally(() => {
|
|
11288
|
-
|
|
11288
|
+
if (this.isRunning) {
|
|
11289
|
+
setTimeout(() => this.analyzeVideoStream(), ExtractorVideo.FREQUENCY_MS);
|
|
11290
|
+
}
|
|
11289
11291
|
});
|
|
11290
11292
|
}
|
|
11291
11293
|
onExtraction(isExtractionOk, extractionData) {
|
|
@@ -11337,6 +11339,10 @@ class ExtractorVideo {
|
|
|
11337
11339
|
video: userMediaConstraints
|
|
11338
11340
|
}).then(stream => {
|
|
11339
11341
|
this.video.srcObject = stream;
|
|
11342
|
+
this.video.onloadedmetadata = () => {
|
|
11343
|
+
this.sessionStartTime = Date.now();
|
|
11344
|
+
this.analyzeVideoStream();
|
|
11345
|
+
};
|
|
11340
11346
|
this.video.play().catch(e => {
|
|
11341
11347
|
console.warn(`Error on video play: ${e}`);
|
|
11342
11348
|
});
|