@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.
@@ -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
- * Only iOS instances ever fire this callback; Android instances
131
- * have no camera-injector path and stay silent.
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
- * iOS only: when true, capture the user's microphone via
187
+ * When true, capture the user's microphone via
187
188
  * `getUserMedia({ audio: true })` and stream it live into the
188
- * simulator's mock microphone. Unlike the camera (which is
189
- * demand-driven by apps inside the sim), the microphone is
190
- * user-driven: flip this prop from a button in your UI. The
191
- * component handles the browser permission prompt, the WebRTC
192
- * track attach (no SDP renegotiation — the audio slot is
193
- * pre-allocated) and the `microphoneStart`/`microphoneStop`
194
- * signaling to the host. Progress and failures are reported via
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 an enable attempt resolves (granted or denied), when the
201
- * host acknowledges or rejects the stream, when the browser
202
- * revokes the track mid-stream, and on disable. Use it to render
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
  }