Interface: useLivestreamViewerResult
Defined in: packages/react-native-client/src/hooks/useLivestreamViewer.ts:21
Properties
connect()
connect: (
config,url?) =>Promise<void>
Defined in: packages/react-native-client/src/hooks/useLivestreamViewer.ts:27
Callback to start receiving a livestream.
If the livestream is private, provide token.
If the livestream is public, provide streamId.
Parameters
| Parameter | Type |
|---|---|
config | ConnectViewerConfig |
url? | string |
Returns
Promise<void>
disconnect()
disconnect: () =>
void
Defined in: packages/react-native-client/src/hooks/useLivestreamViewer.ts:29
Disconnect from a stream previously connected to with connect
Returns
void