feat: new shortcuts to increase and decrease playback rate

This commit is contained in:
Trizotto 2025-09-07 15:02:34 +02:00
parent ee0fb85eb5
commit 838c5b3485
5 changed files with 27 additions and 0 deletions

View file

@ -697,6 +697,14 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
resetTimer();
ref.read(videoPlayerSettingsProvider.notifier).steppedVolume(-5);
return true;
case VideoHotKeys.speedUp:
resetTimer();
ref.read(videoPlayerSettingsProvider.notifier).steppedSpeed(0.1);
return true;
case VideoHotKeys.speedDown:
resetTimer();
ref.read(videoPlayerSettingsProvider.notifier).steppedSpeed(-0.1);
return true;
case VideoHotKeys.fullScreen:
fullScreenHelper.toggleFullScreen(ref);
return true;