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.
Files changed (2) hide show
  1. package/README.md +12 -3
  2. 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`. On macOS, `WKWebView` additionally requires
99
- `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` in the `Info.plist` (the
100
- same keys above).
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-camera-kessdev",
3
- "version": "0.1.1-beta.0",
3
+ "version": "0.1.1-beta.2",
4
4
  "author": "kess",
5
5
  "description": "Camera plugin for Tauri v2: photo capture, video recording and preview on Android, iOS and desktop.",
6
6
  "license": "MIT",