You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(name==="CameraDeviceUnavailableError"||normalized.includes("could not open a usable camera")){
7
+
return"Camera devices were found, but Iris could not open a usable camera. Close other camera apps and check Windows camera privacy or driver settings, then try again.";
8
+
}
9
+
6
10
if(
7
11
name==="NotFoundError"||
8
12
normalized.includes("requested device not found")||
@@ -27,3 +31,84 @@ export function cameraErrorMessage(error) {
"Camera devices were found, but Iris could not open a usable camera. Close other camera apps and check Windows camera privacy or driver settings, then try again."
40
+
);
41
+
});
42
+
43
+
test("camera ranking prefers visible usable cameras over IR cameras",()=>{
44
+
assert.ok(
45
+
rankCameraDevice({label: "Windows Studio Effects Camera"})>
46
+
rankCameraDevice({label: "Surface IR Camera Front"})
47
+
);
48
+
assert.ok(
49
+
rankCameraDevice({label: "Camera MX Brio"})>
50
+
rankCameraDevice({label: "Surface Camera Front"})
51
+
);
52
+
});
53
+
54
+
test("camera capture plan tries default then ranked device ids",()=>{
0 commit comments