Preface¶
When working on frontend or content-related tasks in DeepSeek Harness (DSH), the workspace often contains files such as .mp4, .wav, and .html. The default file preview has limited support for such resources; common results include “cannot preview” or download-only options, requiring the agent and you to open external players or browser tabs to verify the results.
The DSH ecosystem extends capabilities based on the “everything is a plugin” philosophy. Community directories (such as SkillHub) host third-party plugins and are not officially affiliated with DeepSeek / High-Flyer. Below is an introduction to the client plugin @vibedev-si/dsh-media-viewer, published by the maintainer VibeDev-Si: it enables inline playback of media and rendering of HTML within DSH’s native right sidebar, and provides a folder-level media gallery.
What is this¶
dsh-media-viewer is a Web UI / Client plugin for DSH, with the npm package name @vibedev-si/dsh-media-viewer. It previews videos, audio, and HTML directly in the right sidebar and provides a folder media gallery. If dsh-better-sidebar is installed, the player will also register into that sidebar editor, while the gallery entry shares the same logic.
Public Repository: github.com/VibeDev-Si/dsh-media-viewer (Stars on the directory page: 0). The version currently included in the marketplace is 0.2.1, License: MIT.
Core Features¶
The following capabilities are derived from the plugin README (verified via the dsh marketplace).
Video and Audio¶
- Video: Supports mp4 / webm / mov / mkv, etc.; supports dragging the progress bar, playback speed, and looping; uses HTTP Range streaming, with no file size limits.
- Audio: Supports mp3 / wav / m4a / flac, etc.; real-time spectrum display; playback speed and looping.
HTML Preview¶
- Scripts allowed by default; relative path CSS, JS, images, videos, and
fetchcan be loaded. - Supports preview / source code switching, as well as mobile, tablet, and desktop viewport widths; scripts can be toggled via the toolbar.
- HTML runs in a sandboxed iframe with an opaque origin (no
allow-same-origin), reducing the risk of access to the GUI.
Media Gallery¶
- Thumbnail grid; filter, search, and sort by video / audio / image / web page; can include subfolders.
- Lightbox viewing supports previous / next (← →).
- Add to Canvas: After checking media via “Multi-select” in the gallery, you can add them to the current canvas of the Film Workbench (
dsh-film-studio); if the workbench is not installed, the UI will prompt you. It collaborates with the workbench via the page eventvibedev-film:add-media, copying files to the projectassets/and arranging them on the canvas.
/mp Route¶
DSH’s built-in preview reads the entire file; dsh-better-sidebar’s /sidebar/file and /sidebar/html have a 20MB limit and do not support Range. This plugin provides the /mp/* route, facilitating seeking for large videos and complete loading of HTML with scripts and sub-resources inside the sandbox.
Since 0.2.0, the previewer and gallery are primarily mounted on DSH’s native right sidebar (requires DSH 0.2.1-alpha.2 or higher) and no longer hard-depend on dsh-better-sidebar.
Installation and Activation¶
Host Version: Requires DSH 0.2.1-alpha.2 or newer (docs state VibeDev Next already satisfies this). No other plugins are strictly required, aside from the optional dsh-better-sidebar and optional dsh-film-studio (for “Add to Canvas” only).
- Install via the DSH plugin management interface using the package name
@vibedev-si/dsh-media-viewer, or - Install via terminal using a profile (replace
<your-profile-name>with your actual profile):
dsh plugin --profile <your-profile-name> add @vibedev-si/dsh-media-viewer
Refresh the page after installation. If you previously installed the unscoped legacy package dsh-media-viewer (0.1.0), please uninstall it and switch to @vibedev-si/dsh-media-viewer.
The marketplace also provides a shorthand example dsh plugin add @vibedev-si/dsh-media-viewer; whether this applies depends on your DSH version and default profile, so please refer to the official installation instructions. You can use dsh --profile default --dump-config to confirm if the plugin layer is effective.
Typical Usage¶
Single File Preview
- Open a video, audio, or HTML file in the file tree; it defaults to this plugin’s player.
- If you need to switch back to the built-in preview, select it in the switch menu at the top of the file preview.
Open Media Gallery
- “Media Gallery” on the “Start” page of the right sidebar;
- “Media Gallery” at the top of the file tree (current folder);
- “Gallery” at the top of the file preview (folder containing the file).
Integration with Workbench
- Enable
dsh-film-studioand open the canvas in the sidebar. - Enter “Multi-select” in the gallery and check images / videos / audio (Shift-select and Select All are supported).
- Click “Add to Canvas”.
When previewing untrusted HTML, it is recommended to turn off “Scripts On” in the toolbar.
Use Cases and Notes¶
Who is it for
- Developers or agent authors who frequently view sample clips, podcast materials, and prototype HTML within the DSH workspace.
- Users who need to browse large amounts of media within a folder in the same interface and then batch send them to the film workbench.
Security and Permissions
- The plugin runs under the permissions of the current dsh process and registers routes such as
/mp/*to the Web service; please read the GitHub Source Code and the MIT license before installing. - Paths are restricted to the current session’s working directory; the Host must be a loopback or trusted host. HTML allows scripts by default, so only preview trusted content or manually turn off scripts.
- Community Directory Page: SkillHub - dsh-media-viewer.
Known Limitations (README)
- HTML root relative paths (e.g.,
/logo.png) will point to the GUI server root; relative paths should be used instead. - Encodings not supported by the browser, such as H.265 / HEVC, cannot be played; a prompt will appear with a download link.
- The gallery supports a maximum of 3000 files per session and a maximum recursion depth of 6 levels, skipping
node_modulesand.git. - The documentation notes that testing was primarily conducted on Windows; macOS / Linux have not yet been verified on real devices.
Conclusion¶
@vibedev-si/dsh-media-viewer brings videos, audio, HTML, and folder galleries into the DSH right sidebar, reducing the cost of switching back and forth to external tools; large files and complex HTML are handled via the /mp route and sandboxed preview to fill the gaps in the host’s default capabilities.
- Community Directory: https://www.skillhub.cn/plugins/VibeDev-Si/dsh-media-viewer
- Source Code and README: https://github.com/VibeDev-Si/dsh-media-viewer