setMediaVolume method

Future<void> setMediaVolume(
  1. int volume, {
  2. bool isSyncToRemote = false,
})

Set media player volume.

set isSyncToRemote to be true if you want to sync both the local play volume and the publish volume, if isSyncToRemote is false, that will only adjust the local play volume.

  • volume The range is 0 ~ 100. The default is 30.

Implementation

Future<void> setMediaVolume(
  int volume, {
  bool isSyncToRemote = false,
}) async {
  return ZegoUIKitCore.shared.setMediaVolume(
    volume,
    isSyncToRemote: isSyncToRemote,
  );
}