SimpMusic icon indicating copy to clipboard operation
SimpMusic copied to clipboard

Desktop App Windows SMTC support

Open rlnotgay opened this issue 10 months ago • 4 comments

Problem Description

Windows SMTC does not recognize the desktop app as a media player, meaning plugins/tray applications such as Media Presence can not function with SimpMusic.

Proposed Solution

For your media player to be detected by Music Presence, it needs to report what media it is playing to the operating system. On Windows this would e.g. be done via SMTC (System Media Transport Controls), which is the Windows API that pretty much every media player or application uses to offer playback information and media controls to the user through Windows's native controls: https://imgur.com/a/YDQegwW Implementing this would not only make your media player work with Music Presence, but also offer every user of your player a better user experience and proper integration with the operating system, which ultimately improves the quality of your media player as a whole.

Alternative Solutions

Your media player should report at least this information to work flawlessly with Music Presence: Playback status (playing or paused), song title, artist, album name, live playback position, song duration and the album cover image. Official Windows Documentation for SMTC: https://learn.microsoft.com/en-us/uwp/api/windows.media.systemmediatransportcontrols On Mac devices the "MediaRemote" framework is used by Music Presence to detect media from applications, on Linux your media player should use MPRIS to report what it is playing. These are standard protocols/APIs which are widely used for the purpose of reporting what media an application is playing.

Additional Context

No response

rlnotgay avatar Jan 24 '26 14:01 rlnotgay

Wait, the native control in Windows dont work with SimpMusic ?

maxrave-dev avatar Jan 28 '26 02:01 maxrave-dev

Wait, the native control in Windows dont work with SimpMusic ?

Indeed, the native Windows driver doesn't recognize simpmusic as a music player. This is still happening, at least, in version 1.1.1 on Windows 11. I'm not entirely sure why, as I have no coding experience, but it's strange because, in my experience, any application that plays audio or sound is usually recognized by Windows well enough to at least allow pausing and unpausing.

X-perro avatar Mar 21 '26 13:03 X-perro

any updates on this? panoscrobbler isnt able to detect trackname, artist name nor the album name.

akshatrk76 avatar Jun 16 '26 14:06 akshatrk76

Windows SMTC (System Media Transport Controls) support has been implemented and will ship in the next desktop release.

The Windows now-playing overlay now shows the track title, artist, and album artwork, and the play / pause / next / previous buttons control playback. This is backed by a hardened fork of the JMTC library (org.simpmusic:jmtc) with the native adapter reworked for stability.

Fixed on the dev branch — thanks for the request!

maxrave-dev avatar Jul 18 '26 16:07 maxrave-dev