@displayxr/inline3d 1.47.3 → 1.47.5
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 +42 -0
- package/dist/call.js +5 -5
- package/js/camera/capture.js +73 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,48 @@ entry points (`.`, `./three`) are frozen for 1.x, while the **scene subpaths** (
|
|
|
5
5
|
`./splat`, `./model`) are a preview tier whose options may change in any release. Entries below say
|
|
6
6
|
which tier they touch, because that is what tells you whether an upgrade can move your pixels.
|
|
7
7
|
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
## 1.47.5 — 2026-11-01
|
|
11
|
+
|
|
12
|
+
### Fixed — the camera permission prime could open a phone lens and crash its camera (`./camera`, `./call`)
|
|
13
|
+
|
|
14
|
+
Before camera permission, `openCamera('auto')` primed on `{1280x720, facingMode: 'environment'}`.
|
|
15
|
+
On a phone whose lenses all report the same facing, that picked camera 0, one lens of the 3D
|
|
16
|
+
camera's pair, and on some phones a plain open of that lens, or its teardown, crashes the camera
|
|
17
|
+
service. The prime now asks for the default camera with no constraints. The DisplayXR Browser lists
|
|
18
|
+
its 3D camera first, so the prime opens the pair directly and no lens is opened. A desktop webcam is
|
|
19
|
+
still opened once and kept, and is then asked for the usual 1280x720 mode without a second start.
|
|
20
|
+
With labels visible but no 3D camera listed, the list is read once more before the fallback, since
|
|
21
|
+
a runtime 3D camera can appear late after a runtime restart.
|
|
22
|
+
|
|
23
|
+
## 1.47.4 — 2026-10-31
|
|
24
|
+
|
|
25
|
+
### Fixed — a declared 3D camera with portrait eyes was dropped for a plain one (`./camera`, `./call`)
|
|
26
|
+
|
|
27
|
+
- `openCamera` kept a device as a pair only if it was wider than 2.5:1. A phone's front pair with
|
|
28
|
+
portrait eyes (720x1280 each, so a 1440x1280 frame) failed that test: the SDK stopped the
|
|
29
|
+
"3D Camera (DisplayXR)" track and fell back to the plain default camera. A track whose settings
|
|
30
|
+
say `displayxrStereo.layout === 'side-by-side'` is now a pair whatever its aspect, so the SDK no
|
|
31
|
+
longer falls back once the browser offers a stereo track. Shape is still the guess for devices
|
|
32
|
+
that say nothing (USB pairs).
|
|
33
|
+
|
|
34
|
+
### Fixed — before camera permission, `openCamera` opened a phone's front (head-tracker) lens (`./camera`, `./call`)
|
|
35
|
+
|
|
36
|
+
Touches `./camera` (`openCamera`'s `auto` / `stereo` probe) and so `./call`'s camera. With camera
|
|
37
|
+
permission already granted, nothing changes.
|
|
38
|
+
|
|
39
|
+
- Without permission the device labels are empty, so the probe used to open the platform default
|
|
40
|
+
camera just to get them: on a phone that is the front lens the head tracker holds, and opening
|
|
41
|
+
it coincided with every camera dropping out for about 2.4 s. It now primes permission on an
|
|
42
|
+
environment-facing camera (`facingMode: { ideal: 'environment' }`), reads the list again, and
|
|
43
|
+
opens a camera that names itself stereo **by id before the default**. A desktop webcam that
|
|
44
|
+
reports no facing is opened once and kept as the mono fallback (no extra camera start); a phone
|
|
45
|
+
with no pair still falls back to the default (front) camera for a self view.
|
|
46
|
+
- `camera-busy` now reads "camera unavailable: in use by another app (e.g. eye tracking) or unable
|
|
47
|
+
to deliver a picture". A 3D camera that is listed but cannot deliver also fails with
|
|
48
|
+
`NotReadableError`, so "every camera is in use" was wrong for it.
|
|
49
|
+
|
|
8
50
|
## 1.47.3 — 2026-10-31
|
|
9
51
|
|
|
10
52
|
### Fixed — a rear 3D camera's view was mirrored (`./camera`, `./call`)
|