useAudioInput
useAudioInput
can be used to control audio configuration. If you’re using the InputStream
component, you can use the mute
and volume
properties to control the audio instead.
Reference
Type definitions
Arguments
inputId
ID of an input. It identifies a stream registered using a Smelter.registerInput method.
- Type:
string
audioOptions
volume
- Number between 0 and 1 representing the audio volume.
- Type:
{ volume: number }