feat: slide actions for skip, volume and brightness (#966)

This commit is contained in:
Fredrik Burmester
2025-08-21 18:02:47 +02:00
committed by GitHub
parent aac9270b62
commit 7b7aced881
12 changed files with 827 additions and 99 deletions

View File

@@ -167,6 +167,10 @@ export type Settings = {
defaultPlayer: VideoPlayer;
maxAutoPlayEpisodeCount: MaxAutoPlayEpisodeCount;
autoPlayEpisodeCount: number;
// Gesture controls
enableHorizontalSwipeSkip: boolean;
enableLeftSideBrightnessSwipe: boolean;
enableRightSideVolumeSwipe: boolean;
};
export interface Lockable<T> {
@@ -223,6 +227,10 @@ const defaultValues: Settings = {
defaultPlayer: VideoPlayer.VLC_3, // ios-only setting. does not matter what this is for android
maxAutoPlayEpisodeCount: { key: "3", value: 3 },
autoPlayEpisodeCount: 0,
// Gesture controls
enableHorizontalSwipeSkip: true,
enableLeftSideBrightnessSwipe: true,
enableRightSideVolumeSwipe: true,
};
const loadSettings = (): Partial<Settings> => {