setVolume method

Future<void> setVolume(
  1. double volume
)

音量

Implementation

Future<void> setVolume(double volume) async {
  if (_dispose) {
    return;
  }

  if (videoPlayerValue?.isInitialized == true) {
    await value.videoPlayerController?.setVolume(volume);
  }
}