setInputVolume
setInputVolume
- setInputVolume(
params):Promise<void>
Sets the input volume level (e.g. for the microphone). You can use this method to set the input volume for either yourself or another participant in the room.
Parameters
params
Object containing the parameters of the method.
memberId
Id of the member for which to set input volume. If omitted, sets the volume of the default device in the local client.
volume
Desired volume. Values range from -50 to 50, with a default of 0.
Returns
Promise<void>
Permissions
room.self.set_input_volume: to set the volume for a local device.room.member.set_input_volume: to set the volume for a remote member.
You need to specify the permissions when creating the Video Room Token on the server side.
Examples
Setting your own microphone volume:
Setting the microphone volume of another participant: