AI Agent Hub
Back to plugins
dsh-media-preview preview

dsh-media-preview

Client Updated 2026.09.01

Run the following command in DeepSeek Harness:

dsh plugin install xiaokaizhou/dsh-media-preview

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install xiaokaizhou/dsh-media-preview in your terminal to install this plugin. Source code is available at https://github.com/xiaokaizhou/dsh-media-preview

About this plugin

When an assistant or tool in a DSH chat returns a local audio/video path or an online media URL, the user is left staring at a plain-text string with no way to preview the content. dsh-media-preview fixes this: it automatically detects local file paths and http(s) links in messages and renders them as inline audio, video, or image preview components, so media plays right where the text appeared. The media engine supports HTTP Range requests (206 Partial Content) for smooth video seeking, covers 27 audio, video, and image formats, and uses a whitelist of root directories plus file extensions to avoid false-matching external URLs. Non-ASCII folder names are handled with safe UTF-8 path encoding. Error reporting is equally transparent: missing files, permission issues, directories, symlink loops, and size overflows each return a distinct HTTP status code with a human-readable reason so the browser player can surface meaningful error messages. If you debug media files locally, collaborate with an assistant on audio/video assets, or simply want to preview the content behind a path or link without leaving the chat, this plugin saves you an extra redirect and a copy-paste step.

Screenshots

Use Cases

  • Preview a local video path inline with a seekable progress bar in chat
  • Auto-render an image URL returned by a tool as an embedded thumbnail
  • Quickly confirm a local audio file is playable during debug sessions

Best For

  • Developers handling local audio and video assets in DSH
  • Debuggers who frequently verify media file availability in chat
  • Media professionals seeking to reduce switching between file manager and chat