Skip to main content

Instructions

Step 1: Generate a streaming SDK token

See our API Docs for instructions on authenticating API requests. You must first generate a token for the devices you want to stream. This token authorizes the SDK to access only the specified devices. API Request:
Example API Response:
👉 Use this token when initializing the stream in your React app.

Step 2: Render an instance of useDeviceStream for each device

The connection process will start as soon as the hook is rendered. To end the stream, simply stop rendering the component that contains the hook.

API reference

useDeviceStream

useDeviceStream(deviceId: string, token: string, options?: DeviceStreamOptions) => DeviceStream

DeviceStreamOptions

DeviceStream

DeviceStreamStatus

Support

Developer support: Contact support@managexr.com for assistance.