Skip to content

Commit 1576130

Browse files
authored
Merge pull request #254 from dynamsoft-docs/preview
add FAQ about capture viewer
2 parents 1aa7ed4 + 4ef3a3d commit 1576130

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

features/viewers/captureviewer.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The resolution of camera can be set when playing the video stream.
7272
```typescript
7373
// Set to 1080P
7474
await captureViewer.play({
75-
resolution: [1920,1080],
75+
resolution: [1920,1080],
7676
});
7777
```
7878

@@ -114,3 +114,12 @@ captureViewer.enableAutoCapture = true;
114114

115115
> If the auto detect is enabled, automatic capturing will only be performed when the detection result meets expectations.
116116

117+
## FAQ
118+
119+
### What cameras are supported?
120+
121+
Capture Viewer uses the [getUserMedia](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) API to access the camera. Normally, the device's built-in cameras and UVC cameras are supported.
122+
123+
### Why can't I use my camera?
124+
125+
This feature is available only in secure contexts (HTTPS or localhost). In addition, if the user denies permission, or the matching media is not available, it will reject your request with `NotAllowedError` or `NotFoundError` DOMException respectively.

0 commit comments

Comments
 (0)