Preface¶
DeepSeek Harness (DSH) Web and Desktop surfaces share the same conversation UI, with a default background of static color blocks. If you want some dynamic visuals while staring at the screen for extended periods, a common approach is to change the system wallpaper or place a video layer behind an external window—but that becomes disconnected from the chat area and cannot adjust contrast along with the theme.
dsh-video-bg is a community plugin that mounts a local video stream on DSH’s built-in loopback Web service and changes the shell design tokens to semi-transparent on the browser side, letting the background video show through while keeping bubbles and input boxes readable. Video bytes do not leave the local machine and do not rely on any external service.
What is this¶
- Name:
dsh-video-bg(same as the npm package name) - Maintainer: zhang-guangjie
- Category: Fun customization (community catalog SkillHub entry)
- Version: 0.4.0 (
package.json) - License: MIT
The plugin works on both dsh web and DSH Desktop (which renders the same Web app): a full-viewport fixed <video> is placed at z-index: -1, the host process streams the file over HTTP, and the browser seeks via Range requests—no need to upload hundreds of MB into the page.
Core Features¶
Background video and local hosting¶
The host half (lib/index.js) injects webServer and registers:
GET/HEAD /video-bg/media: streams the configured video, supports single-segment Range (206/416), with a cache key containing file size and modification time (?v=<size>-<mtime>); files are re-fetched after changes.GET /video-bg/status: JSON status (ok,rev,size,mime, valid path and default item, etc.).
Client requests are same-origin with the document (relative path video-bg/media); on Desktop the document comes from dsh-app://app/, and other paths are forwarded to the same loopback host.
Semi-transparent UI¶
By remapping DSH design tokens (such as --dsw-alias-bg-base, --dsw-specific-sidebar-fill, --dsw-specific-input-major, etc.) to semi-transparent colors, both light and dark themes are covered; panels using these tokens automatically become translucent, while chat bubbles and the composer keep near-opaque fills.
Floating control panel¶
The top-right control includes:
| Control | Effect |
|---|---|
| Play / Pause | Controls the background video |
| Opacity | Video opacity 0–100% |
| Scrim | Dark curtain between video and UI 0–100% |
| Fit | cover fills the window, or contain shows the full frame |
| Collapse | Collapse / expand the settings area |
Options are written to localStorage (key dsh.videoBg.v3); video pauses when the window is hidden. A warning badge appears when the file is missing or unreadable, with diagnostics printed to the console.
Environment and dependencies¶
- DeepSeek Harness 0.2.x (the bundle is loaded only after
engines.dshand the installed runtime are validated). - Node 20+ (the host side only uses
node:fs,node:path,node:url). - The video must be readable by the host process; recognized extensions include MP4, WebM, MOV, MKV, AVI, OGG, TS, others are served as
video/mp4.
Installation and enablement¶
The package is a regular DSH bundle; choose one of the following methods (installation automatically writes to dsh.profile.bundles; do not manually add duplicate lines):
# Install from GitHub (pure JavaScript, no build step, no allowBuilds needed)
dsh plugin --profile desktop add github:zhang-guangjie/dsh-video-bg
dsh plugin --profile web add github:zhang-guangjie/dsh-video-bg
# Local dev directory (absolute path)
dsh plugin --profile desktop add link:/absolute/path/to/dsh-video-bg
# npm (after release)
dsh plugin --profile desktop add dsh-video-bg
You can also install it via the GUI plugin manager (Plugins → install / browse).
Desktop note: If the profile is load-on-demand, new bundles are hot-reassembled; if it is a profile that only loads at startup, you need to fully quit and restart DSH Desktop once. On the Web side, refresh the page after installation.
Configuring video path and defaults¶
Resolution order:
- Plugin line config
videoPath; - Environment variable
DSH_VIDEO_BG_PATH; - Package default
media/background.mp4.
Set it in the profile’s patch layer ($DSH_HOME/profiles/<profile>/cordis.patch.yml), with the line id ui-video-bg:
- id: ui-video-bg
config:
videoPath: 'D:\my-video.mp4' # local path; ~ is expanded
fit: cover # cover | contain
opacity: 55 # initial video opacity 0-100
veil: 25 # initial scrim 0-100
videoPathandfitare read by the host;opacityandveilserve as defaults only when the browser has no saved slider values, thereafter the control panel takes precedence.- Config changes hot-reload the plugin when HMR is enabled.
- You can also set the environment variable
DSH_VIDEO_BG_PATHbefore starting DSH.
Typical usage¶
- Install as described above and (optionally) point
cordis.patch.ymlto your MP4/WebM etc. file. - Open
dsh webor DSH Desktop and confirm the floating control appears in the top-right corner. - Adjust readability with opacity and scrim; choose
containwhen you need to see the full frame,coverwhen you need to fill the window. - If a warning badge appears, visit
GET /video-bg/statusin the browser to checkerror(e.g.missing/unreadable) and verifyvideoPath.
Use cases and caveats¶
Suitable for: DSH 0.2.x users who want dynamic backgrounds within the same chat interface, with videos stored only locally and no third-party wallpaper service.
Privacy: The video is served only by the host over the existing loopback Web service; the plugin makes no external connections, no uploads, and does not read credentials or cookies. The status endpoint exposes the local video path (consistent with the control panel tooltip); videoPath should be treated as trusted configuration at the same level as other profile settings.
Permissions and security: The plugin reads disks and provides HTTP routes with the permissions of the current DSH host process. Before installing, it is recommended to review the source code and MIT license at the GitHub repository to confirm the paths and runtime environment comply with your policies.
Compatibility: If other skins or plugins hard-code the surface to opaque colors, they may cover the token semi-transparency effect; conflicting items need to be disabled. The first frame of a large file may be slightly slow, which is normal for Range fetching from disk.
Troubleshooting quick reference:
| Symptom | Suggestion |
|---|---|
| Warning present, no picture | Check /video-bg/status and videoPath |
| Picture present but nearly invisible | Increase opacity, lower scrim, or switch to a brighter clip / contain |
| No effect right after installation | Desktop needs a full restart; Web refresh |
| Video covered | Check opaque skins or other plugins |
Closing¶
dsh-video-bg brings local looping video, a semi-transparent shell, and an adjustable scrim into the DSH plugin model: the host handles Range streaming from disk, the client handles mounting and controls, and data never leaves the machine. The community catalog and DeepSeek / Hithink RoyalFlush have no official affiliation; this is a fun customization extension within the DSH “everything is a plugin” ecosystem.
- Catalog page: https://www.skillhub.cn/plugins/zhang-guangjie/dsh-video-bg
- Source code and documentation: https://github.com/zhang-guangjie/dsh-video-bg