setMusicPublishVolume method

Future<void> setMusicPublishVolume(
  1. int id,
  2. int volume
)

Set the remote volume of background music. The anchor can use this API to set the volume of background music heard by the remote audience.

Parameters:

id Music track ID

volume Volume. 100 is the normal volume. Value range: 0100. Default value: 100

Platform not supported:

  • web

Implementation

Future<void> setMusicPublishVolume(int id, int volume) {
  return _channel
      .invokeMethod('setMusicPublishVolume', {"id": id, "volume": volume});
}