setOutputVolume
setOutputVolume
- setOutputVolume(
params):Promise<void>
Sets the output volume for the member (e.g., the speaker output level).
Parameters
params
Object containing the parameters of the method.
memberId
ID of the member to affect.
volume
Desired volume. Values range from -50 to 50.
Returns
Promise<void>
Example
In this example, we wait for a room to start and then wait for a member to join the room.
When a member joins the room, we set the output volume for that member to -50.
This example assumes that there is a RoomSession
already active and that members are joining the room.