@limrun/ui 0.14.1 → 0.14.3
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 +10 -12
- package/dist/index.cjs +1 -1
- package/dist/index.js +591 -572
- package/package.json +1 -1
- package/src/components/remote-control.test.ts +34 -0
- package/src/components/remote-control.tsx +60 -33
- package/vitest.config.ts +3 -2
|
@@ -185,22 +185,19 @@ interface RemoteControlProps {
|
|
|
185
185
|
/**
|
|
186
186
|
* iOS only: when true, capture the user's microphone via
|
|
187
187
|
* `getUserMedia({ audio: true })` and stream it live into the
|
|
188
|
-
* simulator's mock microphone.
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* signaling to the host. Progress and failures are reported via
|
|
195
|
-
* `onMicrophoneStateChange`. Ignored on Android instances.
|
|
188
|
+
* simulator's mock microphone. This is a manual override: iOS apps
|
|
189
|
+
* that actively consume microphone input also trigger capture
|
|
190
|
+
* automatically, like camera demand. The component handles the
|
|
191
|
+
* browser permission prompt, WebRTC track attachment, and
|
|
192
|
+
* `microphoneStart`/`microphoneStop` signaling. Progress and failures
|
|
193
|
+
* are reported via `onMicrophoneStateChange`. Ignored on Android.
|
|
196
194
|
*/
|
|
197
195
|
microphoneEnabled?: boolean;
|
|
198
196
|
/**
|
|
199
197
|
* Fires whenever the live-microphone pipeline changes state:
|
|
200
|
-
* after
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
* the mic button's on/off/error state.
|
|
198
|
+
* after a manual or guest-demanded attempt resolves, when the host
|
|
199
|
+
* acknowledges or rejects the stream, when the browser revokes the
|
|
200
|
+
* track mid-stream, and when capture stops.
|
|
204
201
|
*/
|
|
205
202
|
onMicrophoneStateChange?: (state: MicrophoneState) => void;
|
|
206
203
|
}
|
|
@@ -309,5 +306,6 @@ export interface RemoteControlHandle {
|
|
|
309
306
|
setInspectSelection: (element: AxElement | null) => void;
|
|
310
307
|
getAxStatus: () => AxStatus;
|
|
311
308
|
}
|
|
309
|
+
export declare const withAuthenticationToken: (url: string, token: string) => string;
|
|
312
310
|
export declare const RemoteControl: React.ForwardRefExoticComponent<RemoteControlProps & React.RefAttributes<RemoteControlHandle>>;
|
|
313
311
|
export {};
|