I’m looking for a way to send Left/Right Arrow key presses to the app that is currently playing media, rather than the frontmost app.
My use case is YouTube playback. Sometimes I watch YouTube in Chrome, and other times in Safari. I would like a BetterTouchTool trigger (e.g., a mouse button) to send Left/Right Arrow to whichever app is currently playing the video.
For example:
YouTube is playing in Chrome or Safari
I am working in another app (not the browser)
I press a trigger in BetterTouchTool
BTT sends Left/Right Arrow to the app that is currently playing the video so the video seeks backward/forward
Ideally this would work similarly to how macOS media keys (Play/Pause) behave:
the fn media key controls the currently playing media, regardless of which app is frontmost.
What I’m hoping for is something similar, but for Left/Right Arrow seeking, based on the currently playing media session, not the focused app.
Is there any way in BetterTouchTool to:
Detect the currently playing media app (Now Playing), and
Send custom key presses (like Left/Right Arrow) to that app?
I'm not sure, but I think this is not possible at the moment, because the action "Send Shortcut to Specific App" does not allow you to dynamically set the app to which you should sent the shortcut, but I believe this is good addition. However only Andreas can say if this can be implemented.
If you use only Chrome or Safari for this, then you should be able to do it, but note that this will block the default behavior of left/right arrows, so maybe pair them with a modifier key(s).