Skip to content

Add hevc.js sample for HEVC playback in browsers without native support#5028

Open
privaloops wants to merge 1 commit into
Dash-Industry-Forum:developmentfrom
privaloops:samples/hevc-playback
Open

Add hevc.js sample for HEVC playback in browsers without native support#5028
privaloops wants to merge 1 commit into
Dash-Industry-Forum:developmentfrom
privaloops:samples/hevc-playback

Conversation

@privaloops
Copy link
Copy Markdown

Per discussion in #5018, this adds a reference sample for hevc.js, an HEVC software fallback plugin for dash.js.

The sample shows how to play HEVC (H.265) DASH streams in dash.js on browsers without native HEVC support (Firefox, Chrome on Linux/Windows, etc.). The @hevcjs/dashjs-plugin package patches MSE so that HEVC samples are transcoded to H.264 inside a Web Worker (WASM H.265 decoder + WebCodecs H.264 encoder). The underlying <video> element keeps playing a standard H.264 stream, so ABR, audio sync, and seeking all work unchanged.

A new hevc.js section is added to samples.json (alongside the existing LCEVC section). The sample HTML is self-contained and pulls the plugin from esm.sh (ESM, no build step) plus the WASM / Worker assets from unpkg.

cc @dsilhavy

@dsilhavy dsilhavy added this to the 5.2.0 milestone May 7, 2026
@dsilhavy dsilhavy self-requested a review May 7, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants