DSH-Netease-Island: NetEase Cloud Music Dynamic Island Style Status Widget

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.

  1. Status Display: Displays a capsule at the top center containing the cover, song name, artist, and playback progress.
  2. Playback Control: Supports play/pause, previous, next, and seeking via the progress bar.
  3. Data Source: Reads media control data directly from the Windows system without logging into accounts, reading Cookies, or accessing private interfaces.
  4. 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.

  1. 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>
  1. 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 appPatterns will be discarded. These snippets are passed as command-line arguments to powershell.exe, and the console code page may cause Chinese argument parsing errors before transmission.

Typical Usage

  1. Collapsed State: Displays as a small capsule at the top center when idle.
  2. Expand Interaction: Expands when the mouse hovers over it.
  3. Playback Control: Click the main body of the capsule to toggle play/pause.
  4. Song Switching: When expanded, click the left side for previous and the right side for next.
  5. Progress Seeking: When expanded, the progress bar in the middle supports click-to-seek.
  6. 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:

  1. Has DSH been restarted?: Injection lines will not be loaded if it has not been restarted.
  2. Check Status API: Visit http://127.0.0.1:19387/dsh-netease/state.json.
    • If the bridge field is down, check if PowerShell 5.1 is available.
    • If bridge is up but there is no active, it means there is currently no media session on the system; please play music.
  3. Check notes field: The bridge process writes WinRT exceptions to notes, 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
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye