jarnedemeulemeester / findroid

Third-party native Jellyfin Android app
GNU General Public License v3.0
2.69k stars 167 forks source link

Add support for keyboard shortcuts #844

Open jkcdarunday opened 2 months ago

jkcdarunday commented 2 months ago

Is your feature request related to a problem? Please describe. When watching a video on a tablet (probably mobile as well) with a keyboard attached/connected, keys like space, left arrow, and right arrow do not do what you'd expect from a video player (play/pause, seek previous, seek forward respectively). Instead, the arrow keys jump through the buttons and space just selects the button.

Describe the solution you'd like Would be great to have support for keyboard shortcuts similar to mpv where the main ones are: Space = Play/Pause Left/Right = Seek 5 seconds Up/Down = Seek 1 minute

With less main ones being (nice to haves): Shift+left/right = Seek 1 second Shift+up/down = Seek 5 seconds [/] = Decrease/increase playback speed Backspace = Reset playback speed </> = Previous/next video v = Enable/disable subtitles j/J = Cycle through subtitles # = Cycle through audio tracks

Describe alternatives you've considered I've confirmed that the main keyboard shortcuts (play/pause and seek) are working in the following alternatives:

Additional context None of these shortcuts work in Findroid whether I'm using the mpv player nor the default player