Play mp4, m4v, webm, ogv and mov files inside the DeepSeek Harness Sidebar document preview with native playback controls, instead of the unsupported-format message.
Install
# from npm (prebuilt)
dsh plugin --profile web add @ouyang111/dsh-video-preview
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ouyang111/video-preview
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Play video files inside the DeepSeek Harness Sidebar document preview.
The built-in preview renders text, Markdown, code, images, PDF, Office files, and HTML, but an .mp4 falls into the unsupported-binary path. This bundle registers a bytes-complete document preview for video suffixes and renders it with a native <video> element, so playback controls and scrubbing work in the pane. Playback stops at the end; it does not loop, and it does not start by itself.
Supported formats
| Suffix | MIME |
|---|---|
.mp4, .m4v |
video/mp4 |
.webm |
video/webm |
.ogv |
video/ogg |
.mov |
video/quicktime |
Whether a given codec actually plays depends on the Chromium build that ships the Web shell (H.264/AAC and VP9/Opus are normally available; exotic codecs may not be).
How it works
- Host half (
index.js) is empty; the preview registers from the client module. client.jscallsctx.documentPreviews.register({ id, extensions, binaryExtensions, priority: 'extension', title, loading: 'bytes-complete' })and mounts a body in the keyedsidebar.right.tab.documentslot under the same id.- The body turns the previewed file's bytes into a Blob URL and revokes it when the tab changes or unmounts.
Limitations
- The whole file is read before playback (
bytes-complete), so a clip above the Host preview size cap still shows the unsupported message. - No thumbnails or poster frames; the first frame appears when playback starts.
.movonly plays if its codec is one the browser supports.- No autoplay and no loop: press play, and the clip stops on its last frame.
- The preview pane is not a media library: no playlists, no frame stepping.
Install
dsh plugin --profile web add @ouyang111/dsh-video-preview
Or install this repository as a bundle in the profile. Then open any video from the Files pane; a page refresh is needed once after installation so the client module is loaded.
License
MIT.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10669
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10669
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8366
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7489
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5362
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1070
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.