DSH Video Preview
zemul/dsh-video-preview · skills
Video file preview plugin for dsh-better-sidebar: When opening video files such as .mp4.webm.mov.mkv.avi in the sidebar, replay a player that can drag progress bars.
★ 5GitHub stars
1Forks
2026-09-01Last updated
JavaScriptLanguage
MITLicense
Key features
- Register video previewer via ctx.betterSidebar.registerFileViewer (id video, same as the built-in viewer)
- The router does not support HTTP Range (read memory for the entire file, return 200), and the browser cannot drag the progress bar (seek)
- Route reuse with the same host-head trust fence as /api gateway (loopback or trustedhosts, refuse to cross).
- InlinePlay/Pause, Drag Progress Bar (Range 206), Speed, Full Screen, Volume, Preload = Metadata
Requirements
- Packaging/codes that support decodable browsers (mp4/m4v for H264 and webm,mov, OGV for VP8/VP9)
- Chrome/Edge/Firefox unencoded format (such as some HEVC, AV1 combination) will be reported in error on the player and can be retrieved using Download
Install command
dsh plugin --profile web add github:zemul/dsh-video-preview