Make seek durations configurable in Playback menu and add secondary seek

Playback menu seek items now follow the durations from the active player
controls preset instead of hardcoded 10s/30s labels. AppEnvironment caches
the active preset's center settings (refreshed on preset change
notifications) so menu commands can read them synchronously.

Add secondary seek durations (default 30s) to CenterSectionSettings,
configurable on macOS in Seek Durations settings, used by Shift+arrows in
the player and Cmd+Shift+arrows in the Playback menu.

Also let Cmd-based key equivalents pass through the player keyboard
monitor so menu shortcuts (e.g. Cmd+Option+arrow previous/next video)
work while the player window has focus, and unify macOS built-in preset
primary seek at 10s to match iOS/tvOS (built-in presets version 8).
This commit is contained in:
Arkadiusz Fal
2026-06-19 08:50:39 +02:00
parent 5bc774dd83
commit ca67d480ca
7 changed files with 197 additions and 50 deletions

View File

@@ -5741,42 +5741,22 @@
}
}
},
"menu.playback.seekBackward10" : {
"menu.playback.seekBackward %lld" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Seek Back 10s"
"value" : "Seek Back %llds"
}
}
}
},
"menu.playback.seekBackward30" : {
"menu.playback.seekForward %lld" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Seek Back 30s"
}
}
}
},
"menu.playback.seekForward10" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Seek Forward 10s"
}
}
}
},
"menu.playback.seekForward30" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Seek Forward 30s"
"value" : "Seek Forward %llds"
}
}
}
@@ -13260,6 +13240,28 @@
}
}
},
"settings.playerControls.center.secondarySeekBackwardTime" : {
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Secondary Seek Time"
}
}
}
},
"settings.playerControls.center.secondarySeekForwardTime" : {
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Secondary Seek Time"
}
}
}
},
"settings.playerControls.center.seekBackward" : {
"localizations" : {
"en" : {
@@ -13286,7 +13288,7 @@
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Seek durations are used by the ← and → keyboard shortcuts and by seek buttons added to the player."
"value" : "Seek durations are used by the ← and → keyboard shortcuts and by seek buttons added to the player. Hold ⇧ Shift with ← or → to seek by the secondary durations."
}
}
}