Preface¶
The desktop mode of DeepSeek Harness supports extending the interface via plugins. dsh-netease-island is a plugin that displays a capsule component similar to Apple’s Dynamic Island at the top center of the page. It displays the current playback cover, song name, artist, and progress, and provides playback control functions. This plugin does not call NetEase Cloud Music private APIs; the data source is Windows SMTC (System Media Transport Controls).
Core Features¶
This plugin mainly addresses the need to view and control NetEase Cloud Music playback status in real-time within the DSH desktop window.
- Status Display: Displays a capsule at the top center containing the cover, song name, artist, and playback progress.
- Playback Control: Supports play/pause, previous, next, and seeking via the progress bar.
- Data Source: Reads media control data directly from the Windows system without logging into accounts, reading Cookies, or accessing private interfaces.
- Interaction Logic: Supports dragging and saving the position; automatically hides when there is no active playback session, saving screen space.
Installation and Usage¶
To install this plugin, the DSH command-line tool is required.
- Execute the following command to install the plugin (using the GitHub address is recommended):
dsh plugin --profile desktop add github:yezisorft/dsh-netease-island
If the plugin is located in a local directory, you can also install it using the absolute path:
dsh plugin --profile desktop add <absolute path to this directory>
- You must restart DeepSeek Harness after installation. The client injection table is collected once during host startup; a restart is the only way to load the injection lines.
Configuration¶
In the profile’s cordis.patch.yml file, add a config item for this plugin entry. If not configured, default values will be used:
- id: dsh-netease-island
name: dsh-netease-island
config:
pollMs: 500 # Polling interval (ms), range limited to 200 ~ 5000
appPatterns: # appId substring match (case-insensitive)
- cloudmusic
- netease
- com.netease
appPatterns can also be written as a comma-separated string, e.g.: appPatterns: 'cloudmusic,netease'.
Note: Non-ASCII characters in
appPatternswill be discarded. These snippets are passed as command-line arguments topowershell.exe, and the console code page may cause Chinese argument parsing errors before transmission.
Typical Usage¶
- Collapsed State: Displays as a small capsule at the top center when idle.
- Expand Interaction: Expands when the mouse hovers over it.
- Playback Control: Click the main body of the capsule to toggle play/pause.
- Song Switching: When expanded, click the left side for previous and the right side for next.
- Progress Seeking: When expanded, the progress bar in the middle supports click-to-seek.
- Position Adjustment: The capsule is draggable, and the position is remembered. Double-clicking the capsule (or dragging it to the top) restores the default position.
Environment Requirements and Dependencies¶
This plugin relies on Windows platform features. The specific requirements are as follows:
| Item | Requirement |
|---|---|
| System | Windows 10 / 11 (depends on WinRT Windows.Media.Control) |
| PowerShell | Windows PowerShell 5.1 (powershell.exe, cannot use PowerShell 7 or pwsh) |
| Player | Must be a player that registers media sessions with SMTC |
Regarding NetEase Cloud Music Compatibility:
The official version of the NetEase Cloud Music desktop client does not register SMTC sessions, so the plugin cannot obtain data. It needs to be used in conjunction with BetterNCM (client plugin loader) and InfLink-rs (publishes playback status to SMTC) for the widget to work properly.
Troubleshooting¶
When the widget does not appear, check the following points in order:
- Has DSH been restarted?: Injection lines will not be loaded if it has not been restarted.
- Check Status API: Visit
http://127.0.0.1:19387/dsh-netease/state.json.- If the
bridgefield isdown, check if PowerShell 5.1 is available. - If
bridgeisupbut there is noactive, it means there is currently no media session on the system; please play music.
- If the
- Check
notesfield: The bridge process writes WinRT exceptions tonotes, which can be used to troubleshoot issues with the NetEase Cloud client’s exposed interface.
License and Information¶
- License: MIT
- Maintainer: yezisorft
- Source Repository: https://github.com/yezisorft/dsh-netease-island
- Plugin Directory: https://www.skillhub.cn/plugins/yezisorft/dsh-netease-island