Skip to main content
Version: 0.29.0

Interface: UseLivestreamStreamerResult

Defined in: react-client/src/hooks/useLivestreamStreamer.ts:28

Properties​

connect()​

connect: (inputs, urlOverride?) => Promise<void>

Defined in: react-client/src/hooks/useLivestreamStreamer.ts:35

Callback used to start publishing the selected audio and video media streams.

Parameters​

ParameterType
inputsConnectStreamerConfig
urlOverride?string

Returns​

Promise<void>

Remarks​

Calling connect multiple times will have the effect of only publishing the last specified inputs.


disconnect()​

disconnect: () => void

Defined in: react-client/src/hooks/useLivestreamStreamer.ts:37

Callback to stop publishing anything previously published with connect

Returns​

void


error​

error: null | LivestreamError

Defined in: react-client/src/hooks/useLivestreamStreamer.ts:39

Any errors encountered in connect will populate this field


isConnected​

isConnected: boolean

Defined in: react-client/src/hooks/useLivestreamStreamer.ts:41

Utility flag which indicates the current connection status