A native Windows 10/11 System Media Transport Controls (SMTC) bridge for the desktop version of Sony Music Center for PC.
Sony Music Center for PC is an Electron-based application, but due to older Electron versions and missing flags, it does not natively interface with the Windows System Media Transport Controls (the volume OSD media popup). This project injects a lightweight background bridge to provide full native OS integration.
- Media Keys: Play, Pause, Next, Previous hardware keys work perfectly, even when the app is minimized to the system tray.
- Track Information: Extracts song title, artist, and album in real-time, fully supporting UTF-8 (CJK characters).
- Album Art: Automatically intercepts high-res cover art (including in-memory
blob:formats) and displays it on the Windows SMTC popup. - Timeline Syncing: Extracts the exact track duration and dynamically creates a virtual audio stream to perfectly sync the SMTC progress bar without pop-up flickering or auto-sync glitches.
- Non-intrusive: Operates completely out-of-process using a C# server. Does not block the main Electron UI thread.
- Close Sony Music Center if it is running.
- Clone or download this repository.
- Right-click on
Install.batand select Run as administrator. (The script safely copies the bridge executable and patches the app's startup scripts). - Open Sony Music Center and play a song!
If Install.bat flashes and closes immediately (e.g., due to antivirus restrictions or UAC issues), you can install the bridge manually:
- Close Sony Music Center.
- Open Task Manager and ensure
SonyMusicCenterSMTC.exeis completely closed (if it was running). - Copy
SonyMusicCenterSMTC.exeto your Sony Music Center installation directory (usuallyC:\Program Files (x86)\Sony\Music Center\). - Navigate to
C:\Program Files (x86)\Sony\Music Center\resources\app\. - Rename the existing
index.jstoindex.js.bak(this is your backup). - Copy the
renderer-hook.jsfile from this project to your Desktop (or any other folder where you have write access). - Rename the file on your Desktop to
index.js. - Open this new
index.jsin a text editor (like Notepad), scroll to the very bottom, add a new line, and append exactly this text:require('@z-app/core'); - Save the file.
- Copy your modified
index.jsfrom the Desktop into theC:\Program Files (x86)\Sony\Music Center\resources\app\folder. (Windows will prompt you for Administrator permission—click Continue). - Start Sony Music Center!
This project consists of two components:
renderer-hook.js: An injected Electron script that scrapes the DOM and intercepts media key events. It establishes a local HTTP POST connection to bypass strict Electron Content-Security-Policies (CSP).SonyMusicCenterSMTC.cs: A native C# WinRT executable that instantiates aMediaPlayerand a virtualMediaStreamSourceto perfectly control the Windows OS timeline without UI glitches.
If you wish to remove the patch:
- Navigate to
C:\Program Files (x86)\Sony\Music Center\resources\app\. - Delete the hooked
index.js. - Rename the original
index.js.bakback toindex.js. - Delete
SonyMusicCenterSMTC.exefrom the main installation folder.