getCurrentVolume method

Future<void> getCurrentVolume()

Implementation

Future<void> getCurrentVolume() async {
  if (desktopOrWeb) {
    _currentVolume.value = _videoPlayerController?.value.volume ?? 0;
  } else {
    try {
      _currentVolume.value = await VolumeController().getVolume();
    } catch (e) {
      customDebugPrint("currentVolume $e");
      //throw 'Failed to get current brightness';
      //return 0;
    }
  }
  //return 0;
}