setRemoteAudioVolume method

Future<void> setRemoteAudioVolume(
  1. String userId,
  2. int volume
)

设定某一个远端用户的声音播放音量

参数:

userId:远程用户 ID

volume:音量。取值范围:0100

Implementation

Future<void> setRemoteAudioVolume(
    String userId, // Remote user ID
    int volume // Volume. Value range: 0–100
    ) {
  return _cloudChannel.invokeMethod('setRemoteAudioVolume', {
    "userId": userId,
    "volume": volume,
  });
}