fix: swipe control inital volume

This commit is contained in:
NoCrypt 2024-08-08 13:47:14 +07:00
parent 4b3b3291cf
commit bcba9f3805

View file

@ -153,7 +153,7 @@ export function swipeControls(node, props = { enabled: true, immersePlayer: () =
if (isNative) {
try {
const { brightness: currentBrightness } = await ScreenBrightness.getBrightness();
const { volume: currentVolume } = await VolumeControl.getCurrentVolume();
const { volume: currentVolume } = await VolumeControl.getVolume();
brightness = currentBrightness * 100;
volume = currentVolume;
updateBrightness();