API
useCreateConfig
A hook that helps you build configuration for useWebRTC
.
It also offers a set of setters and getters to update or retrieve values.
Returns
- The URL of the function for the backend, obtained after deploying the app using
outspeed-client
.
- A function to update the
functionURL
.
- The ID of the selected audio device.
null
if no device is selected.
- A function to update the
audioDeviceId
.
- The ID of the selected video device.
null
if no device is selected.
- A function to update the
videoDeviceId
.
- The audio constraints used for obtaining media from the
navigator
.
- A function to update the
audioConstraints
.
- The video constraints used for obtaining media from the
navigator
.
- A function to update the
videoConstraints
.
- The screen constraints used for capturing screen media.
- A function to update the
screenConstraints
.
- The codec used for audio.
- A function to update the
audioCodec
.
- The codec used for video.
- A function to update the
videoCodec
.
- Options for configuring the WebRTC data channel.
- A function to update the
dataChannelOptions
.
- The configuration used for setting up the WebRTC peer connection.
- A function to update the
rtcConfig
.
- The logger instance used for handling and storing logs.
- A function to update the
logger
.
- A function that builds and returns the configuration object.
- Internally, it passes all inputs to createConfig and returns its output.
Was this page helpful?