@displayxr/inline3d 1.48.0 → 1.49.0
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/CHANGELOG.md +55 -0
- package/call.d.ts +107 -7
- package/camera.d.ts +16 -8
- package/dist/call.js +9 -6
- package/js/call/element.js +3 -1
- package/js/call/options.js +2 -0
- package/js/call/share.js +147 -0
- package/js/call/transport.js +150 -9
- package/js/call/ui.js +3 -0
- package/js/call/wire.js +65 -1
- package/js/camera/app-share.js +54 -0
- package/js/camera/capture.js +100 -23
- package/js/inline3d-call.js +361 -36
- package/js/inline3d-camera.js +9 -5
- package/package.json +1 -1
package/js/inline3d-camera.js
CHANGED
|
@@ -426,16 +426,20 @@ class StereoCamera {
|
|
|
426
426
|
* Open the best camera. `prefer`: `'auto'` (default — a stereo device when one is present: the
|
|
427
427
|
* DisplayXR Browser's "3D Camera", or a device delivering > 2.5:1 frames; else the default
|
|
428
428
|
* webcam), `'stereo'` (prefer the pair, fall back to mono), `'mono'` (never probe), a `deviceId`,
|
|
429
|
-
*
|
|
429
|
+
* `'label:<text>'` (the first camera whose label contains the text, case-insensitive), or a
|
|
430
|
+
* `MediaStream` you own (then `format` declares what it is — 3D-ness is never guessed from
|
|
430
431
|
* a stream). A camera held by another process (an eye tracker) is skipped, never fatal; the
|
|
431
432
|
* promise rejects only when NO camera opens, with `code` `'camera-busy'` (every device is held),
|
|
432
433
|
* `'permission-denied'`, or `'no-camera'`, and `skipped` listing every device tried.
|
|
433
434
|
*
|
|
434
435
|
* A probe never opens a device whose label marks it as a sensor rather than a camera (a hand-tracking
|
|
435
|
-
* camera
|
|
436
|
-
* matching `exclude` (strings: a
|
|
437
|
-
*
|
|
438
|
-
*
|
|
436
|
+
* camera — an Ultraleap enumerates as just "Ultraleap" — an eye tracker's, infrared or depth
|
|
437
|
+
* camera's stream — capture.js CAMERA_EXCLUDE_BUILTIN), nor one matching `exclude` (strings: a
|
|
438
|
+
* label substring, case-insensitive, or an exact deviceId; RegExps: the label). While a listed
|
|
439
|
+
* device is excluded and labels are visible, the default camera is not opened blind: the first
|
|
440
|
+
* other camera is opened by id. `exclude: false` turns the built-in list off too. Left-out devices
|
|
441
|
+
* are in `skipped` with `excluded: true`. An explicit `deviceId` or `label:` is the page's choice
|
|
442
|
+
* and is opened regardless.
|
|
439
443
|
*
|
|
440
444
|
* @param {object|string|MediaStream} [opts] `{ prefer, format, calibration, rectify, exclude, debug }` (or just `prefer`)
|
|
441
445
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@displayxr/inline3d",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"description": "Turn any HTML <canvas> into a 3D window on a spatial display, inside an ordinary web page, for the DisplayXR Browser. Dependency-free; progressive enhancement (falls back to plain 2D everywhere else).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|