supervision 0.1.5 → 0.1.6
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.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +437 -49
- package/dist/index.js.map +1 -1
- package/dist/mask-preparation.worker.js +24 -0
- package/dist/mask-preparation.worker.js.map +1 -1
- package/dist/media/media-errors.d.ts +32 -0
- package/dist/media/media-errors.d.ts.map +1 -0
- package/dist/media/media-source-state.d.ts.map +1 -1
- package/dist/media/media-stream-media-source.d.ts +31 -0
- package/dist/media/media-stream-media-source.d.ts.map +1 -1
- package/dist/media/mediabunny-media-source.d.ts.map +1 -1
- package/dist/media/presentation-timeline-media-source.d.ts +17 -0
- package/dist/media/presentation-timeline-media-source.d.ts.map +1 -0
- package/dist/media/static-image-media-source.d.ts.map +1 -1
- package/dist/renderers/media-renderer-core.d.ts.map +1 -1
- package/dist/renderers/media-renderer-state.d.ts.map +1 -1
- package/dist/sessions/media-session-detections.d.ts.map +1 -1
- package/dist/sessions/media-session.d.ts +2 -2
- package/dist/sessions/media-session.d.ts.map +1 -1
- package/dist/tracking.worker.js +24 -0
- package/dist/tracking.worker.js.map +1 -1
- package/dist/types/media-session.d.ts +57 -1
- package/dist/types/media-session.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/detections/composite-detection-frame-source.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/detections/memory-cold-detection-frame-store.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/detections/projected-detection-frame-source.d.ts +22 -0
- package/node_modules/supervision-js-core/dist/detections/projected-detection-frame-source.d.ts.map +1 -0
- package/node_modules/supervision-js-core/dist/detections/writable-detection-frame-source.d.ts +2 -7
- package/node_modules/supervision-js-core/dist/detections/writable-detection-frame-source.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/index.d.ts +5 -3
- package/node_modules/supervision-js-core/dist/index.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/index.js +678 -63
- package/node_modules/supervision-js-core/dist/index.js.map +1 -1
- package/node_modules/supervision-js-core/dist/types/detection-timeline.d.ts +113 -3
- package/node_modules/supervision-js-core/dist/types/detection-timeline.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/types/detections.d.ts +22 -0
- package/node_modules/supervision-js-core/dist/types/detections.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/types/media-rendering.d.ts +31 -0
- package/node_modules/supervision-js-core/dist/types/media-rendering.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/utils/detection-frames.d.ts.map +1 -1
- package/node_modules/supervision-js-core/dist/utils/detection-projection.d.ts +20 -0
- package/node_modules/supervision-js-core/dist/utils/detection-projection.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -462,6 +462,30 @@
|
|
|
462
462
|
MediaRendererPlaybackState["Error"] = "error";
|
|
463
463
|
MediaRendererPlaybackState["Destroyed"] = "destroyed";
|
|
464
464
|
})(MediaRendererPlaybackState || (MediaRendererPlaybackState = {}));
|
|
465
|
+
/**
|
|
466
|
+
* Stable classification of a media failure.
|
|
467
|
+
*
|
|
468
|
+
* Applications branch on these kinds instead of parsing decoder, demuxer, or
|
|
469
|
+
* container error text, and still own their localized user-facing copy. New
|
|
470
|
+
* kinds may be added over time, so treat unrecognized values like `Unknown`.
|
|
471
|
+
*/
|
|
472
|
+
var MediaErrorKind;
|
|
473
|
+
(function (MediaErrorKind) {
|
|
474
|
+
/** The media could not be opened or read at all. */
|
|
475
|
+
MediaErrorKind["Unreadable"] = "unreadable";
|
|
476
|
+
/** The container or codec is not supported by this platform. */
|
|
477
|
+
MediaErrorKind["UnsupportedFormat"] = "unsupportedFormat";
|
|
478
|
+
/** The media opened but carries no usable video track. */
|
|
479
|
+
MediaErrorKind["NoVideoTrack"] = "noVideoTrack";
|
|
480
|
+
/** Decoding a sample failed after the source opened. */
|
|
481
|
+
MediaErrorKind["Decode"] = "decode";
|
|
482
|
+
/** The media could not be fetched. */
|
|
483
|
+
MediaErrorKind["Network"] = "network";
|
|
484
|
+
/** The host environment lacks the APIs this media source requires. */
|
|
485
|
+
MediaErrorKind["EnvironmentUnsupported"] = "environmentUnsupported";
|
|
486
|
+
/** The failure could not be classified. */
|
|
487
|
+
MediaErrorKind["Unknown"] = "unknown";
|
|
488
|
+
})(MediaErrorKind || (MediaErrorKind = {}));
|
|
465
489
|
/**
|
|
466
490
|
* Lower-level media source readiness.
|
|
467
491
|
*/
|