mediaPlayerSetVolume method

Future<void> mediaPlayerSetVolume(
  1. int index,
  2. int volume
)

Implementation

Future<void> mediaPlayerSetVolume(int index, int volume) {
  if (_mediaPlayers[index] == null) {
    return Future.value();
  }
  return Future.value(ZegoFlutterEngine.instance
      .mediaPlayerSetVolume(volume, _mediaPlayers[index].instance));
}