Skip to content

Add auto-pause support for TIDAL - #863

Open
juansegnana wants to merge 1 commit into
kyleneideck:masterfrom
juansegnana:feature/tidal-auto-pause
Open

Add auto-pause support for TIDAL#863
juansegnana wants to merge 1 commit into
kyleneideck:masterfrom
juansegnana:feature/tidal-auto-pause

Conversation

@juansegnana

@juansegnana juansegnana commented Jul 10, 2026

Copy link
Copy Markdown

Adds a BGMMusicPlayer for TIDAL (com.tidal.desktop) so BGM can auto-pause it.

TIDAL is an Electron app with no AppleScript support, so this uses the Accessibility API instead: it reads the first item of the app's "Playback" menu to detect the play/pause state, and sends AXPress to toggle playback.

Requires Accessibility permission, which is requested when TIDAL is selected as the music player.

Testing

  1. Preferences → Music Player → TIDAL (grant Accessibility when prompted).
  2. Play something in TIDAL, then start audio in another app → TIDAL pauses.
  3. Stop the other audio → TIDAL resumes.

Related issues

Closes #861, closes #262, closes #295.

Also covers the TIDAL request in #155, #356 and #359 (those issues ask for other apps too, so they aren't auto-closed here).

TIDAL is an Electron app with no AppleScript dictionary or local API, so
it can't be controlled through Scripting Bridge like most of the other
players. Instead, BGMTidal drives it through the macOS Accessibility API:
it reads and presses the first item of TIDAL's localized "Playback" menu
(the play/pause toggle) directly via AXUIElement, without visibly opening
the menu. The toggle's title ("Play" vs "Pause", matched against a small
list of known localizations) also tells us whether TIDAL is playing or
paused.

This requires the user to grant Background Music the Accessibility
permission (System Settings > Privacy & Security > Accessibility). BGMTidal
prompts for it in wasSelected, i.e. only once the user actually selects
TIDAL as their music player. If the permission isn't granted, all the AX
queries fail gracefully and TIDAL is reported as not playing/paused.
@juansegnana
juansegnana force-pushed the feature/tidal-auto-pause branch from af27e40 to 46a4570 Compare July 10, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add auto-pause to Tidal Tidal Support TIDAL

1 participant