tauri-plugin-camera-kessdev 0.1.1-beta.0 → 0.1.1-beta.2
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/README.md +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,9 +95,18 @@ Add the following usage descriptions to the app `Info.plist`
|
|
|
95
95
|
|
|
96
96
|
### Desktop
|
|
97
97
|
|
|
98
|
-
Desktop uses the browser's `getUserMedia`.
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
Desktop uses the browser's `getUserMedia`. The plugin installs a webview permission
|
|
99
|
+
handler on **Windows** (WebView2 `PermissionRequested`) and **Linux** (webkitgtk
|
|
100
|
+
`permission-request`) that allows camera and microphone, so `startPreview()` /
|
|
101
|
+
`requestPermissions()` work without extra configuration. The webview asks the plugin,
|
|
102
|
+
and the real gate is the operating system:
|
|
103
|
+
|
|
104
|
+
- **Windows**: Settings → Privacy & security → Camera → turn on camera access and
|
|
105
|
+
"Let desktop apps access your camera".
|
|
106
|
+
- **Linux**: the desktop portal (e.g. `xdg-desktop-portal`) governs camera access.
|
|
107
|
+
|
|
108
|
+
On **macOS**, `WKWebView` additionally requires `NSCameraUsageDescription` and
|
|
109
|
+
`NSMicrophoneUsageDescription` in the `Info.plist` (the same keys above).
|
|
101
110
|
|
|
102
111
|
## Usage
|
|
103
112
|
|
package/package.json
CHANGED