Add threshold config options for prev_or_restart action#3319
Add threshold config options for prev_or_restart action#3319tanguycano wants to merge 1 commit intoDeaDBeeF-Player:masterfrom
Conversation
|
Hi, Can you modify the PR to just set it to larger value? |
|
I have it set to 10s on my machine, but that's also pretty arbitrary. Some tracks also start slow, silent or generic enough that you can't actually tell whether you've rewound or skipped to the previous track until many seconds into the playback. It really depends on the content you are listening to. Therefore, I'd still push for a configuration option, but it obviously is your call. Else, I will just rewrite the constant to a bigger value, such as 10s. |
|
I decided not to wait, and committed the change to 10 sec. |
|
No worries, I should have resubmitted it with a 10s hard-coded value anyway. |
The restart-vs-go-to-previous threshold in action_prev_or_restart_cb was hardcoded to 3 seconds. This makes it configurable via playback.prev_restart_threshold (float, in seconds), defaulting to 3 to preserve existing behavior.
Increasing this value is useful when triggering the action via "smart shortcuts" or "touch controls" on Bluetooth headsets, as some of these input schemes require multiple or long key presses that take longer to complete.