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