@limrun/ui 0.14.2 → 0.15.0
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/dist/components/remote-control.d.ts +14 -15
- package/dist/index.cjs +1 -1
- package/dist/index.js +1148 -1129
- package/package.json +1 -1
- package/src/components/remote-control.tsx +89 -55
|
@@ -127,8 +127,9 @@ interface RemoteControlProps {
|
|
|
127
127
|
* mode. Use it to render a richer status indicator (e.g.
|
|
128
128
|
* "Camera · 1920×1080 · 30 fps · FaceTime HD").
|
|
129
129
|
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
130
|
+
* iOS instances always fire this callback. Android instances fire it
|
|
131
|
+
* when the server supports camera injection (Android 15+); older
|
|
132
|
+
* Android instances have no camera-injector path and stay silent.
|
|
132
133
|
*/
|
|
133
134
|
onCameraDemandChange?: (active: boolean, granted?: boolean, camera?: CameraCaptureInfo) => void;
|
|
134
135
|
/**
|
|
@@ -183,24 +184,22 @@ interface RemoteControlProps {
|
|
|
183
184
|
*/
|
|
184
185
|
cameraAspect?: CameraAspect;
|
|
185
186
|
/**
|
|
186
|
-
*
|
|
187
|
+
* When true, capture the user's microphone via
|
|
187
188
|
* `getUserMedia({ audio: true })` and stream it live into the
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* `onMicrophoneStateChange`. Ignored on Android instances.
|
|
189
|
+
* device's mock microphone. This is a manual override: apps
|
|
190
|
+
* that actively consume microphone input also trigger capture
|
|
191
|
+
* automatically, like camera demand. The component handles the
|
|
192
|
+
* browser permission prompt, WebRTC track attachment, and
|
|
193
|
+
* `microphoneStart`/`microphoneStop` signaling. Progress and failures
|
|
194
|
+
* are reported via `onMicrophoneStateChange`. Ignored on Android
|
|
195
|
+
* servers without camera/mic injection support (Android 14 and older).
|
|
196
196
|
*/
|
|
197
197
|
microphoneEnabled?: boolean;
|
|
198
198
|
/**
|
|
199
199
|
* Fires whenever the live-microphone pipeline changes state:
|
|
200
|
-
* after
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
* the mic button's on/off/error state.
|
|
200
|
+
* after a manual or guest-demanded attempt resolves, when the host
|
|
201
|
+
* acknowledges or rejects the stream, when the browser revokes the
|
|
202
|
+
* track mid-stream, and when capture stops.
|
|
204
203
|
*/
|
|
205
204
|
onMicrophoneStateChange?: (state: MicrophoneState) => void;
|
|
206
205
|
}
|