setVolume method

Future<void> setVolume(
  1. int volume
)

Sets the audio volume of

volume indicates a value between 0 (silent) and 100 (full volume) on a linear scale.

Implementation

Future<void> setVolume(int volume) async {
  _throwIfNotInitialized('setVolume');
  value = value.copyWith(volume: volume.clamp(0, _maxVolume));
  await vlcPlayerPlatform.setVolume(_viewId, value.volume);
}