TRTCVolumeInfo

TRTCVolumeInfo

5.6 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

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

volume Number

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