Documentation Index
Fetch the complete documentation index at: https://docs.reactor.inc/llms.txt
Use this file to discover all available pages before exploring further.
<ReactorProvider>
Context provider that manages the Reactor connection for your React tree. Must wrap all other Reactor components and hooks.
Example
The name of the model to connect to.
Token for authentication. See Authentication.
The API URL.
If
true, connects to a local runtime at http://localhost:8080. Ignores apiUrl.Connection behavior options.
Automatically connect on mount.
Maximum SDP polling attempts before giving up.
<ReactorView>
Displays the video stream from the model. Automatically binds to the video output and manages the video element lifecycle.
Example
The name of the video track to display. Most models expose a single video output called
main_video, which is used by default. Only set this if the model exposes multiple video tracks.The name of an audio track to play alongside the video.
Whether the video element is muted.
CSS class name.
Inline styles.
Width of the video element in pixels.
Height of the video element in pixels.
CSS
object-fit value for the video element.<WebcamStream>
Captures webcam video and automatically publishes it to the model when the connection is ready. Handles camera permissions, lifecycle, and cleanup.
Example
The name of the send track to publish to. Must match a
sendonly track name declared by the model.CSS class name.
Inline styles.
Constraints passed to
getUserMedia().Whether to render the webcam preview.
CSS
object-fit value for the webcam preview.If
true, also captures and publishes microphone audio alongside the webcam video.The name of the audio track to publish to. Must match a
sendonly audio track name declared by the model."ready", and unpublishes when the connection closes or the component unmounts.
<ReactorController>
Auto-generates UI controls from the model’s command schema. Intended for prototyping and debugging. For production, build custom controls.
Example
CSS class name.
Inline styles.
"ready", the component requests the model’s capabilities and renders a form for each declared command. Supports number, integer, string, boolean, and enum parameter types. Sliders execute immediately; other inputs require clicking “Execute”.
<ClipPlayer>
Plays a Clip inline. Renders a native <video controls> element and handles fetching and attaching the clip on Safari, Chrome, Firefox, and Edge.
Example
ClipPlayer works without a ReactorProvider in the tree, so it keeps rendering a clip after the session has ended.
The clip to play. Changing this prop re-attaches the player.
Resolver for the auth token used to fetch the clip. Required when running against
https://api.reactor.inc. Called on each fetch so token refreshes are picked up. See Authentication.Grace period in milliseconds before the SDK gives up waiting for the clip to be finalised. Bump for long recordings where the final segment can take longer to finalise.
Whether playback starts as soon as the clip is attached.
Whether the video starts muted. Browsers block autoplay-with-audio without a user gesture.
CSS class name forwarded to the wrapping element.
Inline styles forwarded to the wrapping element.
Safari can play clips natively. Other browsers need
hls.js installed alongside the SDK as an optional peer dependency:Install hls.js
<ClipDownloadButton>
Drop-in button that downloads a Clip as an MP4. The default label reflects download progress; override it with children to show your own.
Example
The clip to download.
Resolver for the auth token used to fetch the clip. Required against
https://api.reactor.inc. See Authentication.Filename used by the browser save dialog.
Static label, or a render function that receives the current
ClipDownloadState. Omit for the default progress-aware label.CSS class name forwarded to the underlying
<button>.Inline styles forwarded to the underlying
<button>.Disables the button. Always disabled while a download is in flight, regardless of this prop.
useClipDownload.