TRTCVolumeInfo

TRTCVolumeInfo

Volume

Constructor

new TRTCVolumeInfo(userId, volume)

This indicates the audio volume value. You can use it to display the volume of each user in the UI.

Parameters:
Name Type Description
userId String required

userId of the speaker. An empty value indicates the local user. Format: UTF-8.

volume Number required

Volume of the speaker. Value range: 0–100.