Desktop System Media Integration

Wire a desktop app into each OS's system now-playing and transport surface behind one facade, so a failed native initialisation disables the integration and never takes playback down. Covers initialising on the platform's main thread inside a packaged app, reaching an OS media framework through the JVM's native-access layer, holding strong references to callbacks handed to the OS, and confining the integration to its own thread. Use when media keys or the system now-playing panel work under a plain Gradle run but not in the packaged app, when only the app name renders instead of the track title, or when transport callbacks stop arriving after a while.

maxrave-dev d6845ef 6.8 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/desktop-system-media-integration commit d6845ef77c

Frequently asked questions

npx skillmds@latest add maxrave-dev/desktop-system-media-integration