dash-video-element

Custom element for playing video using the DASH format. Uses dash.js.

MIT 27 个版本
安装
npm install dash-video-element
yarn add dash-video-element
pnpm add dash-video-element
bun add dash-video-element
README

<dash-video>

NPM Version NPM Downloads jsDelivr hits (npm) npm bundle size

A custom element for dash.js with an API that matches the <video> API.

Example

<script type="module" src="https://cdn.jsdelivr.net/npm/dash-video-element@0/+esm"></script>
<dash-video controls src="https://player.vimeo.com/external/648359100.mpd?s=a4419a2e2113cc24a87aef2f93ef69a8e4c8fb0c"></dash-video>

Install

First install the NPM package:

npm install dash-video-element

Import in your app javascript (e.g. src/App.js):

import 'dash-video-element';

Optionally, you can load the script directly from a CDN using JSDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/dash-video-element@0/+esm"></script>

This will register the custom elements with the browser so they can be used as HTML.

版本列表
0.3.2 2026-03-19
0.3.1 2025-11-25
0.3.0 2025-11-10
0.2.0 2025-08-08
0.1.6 2025-07-15
0.1.5 2025-06-26
0.1.4 2025-06-09
0.1.3 2025-06-07
0.1.2 2025-05-23
0.1.1 2025-03-12
0.1.0 2025-02-18
0.0.17 2024-12-20
0.0.16 2024-12-19
0.0.15 2024-12-19
0.0.14 2024-11-26
0.0.13 2024-11-26
0.0.12 2024-11-25
0.0.11 2024-06-14
0.0.10 2024-06-07
0.0.9 2024-05-27
0.0.8 2024-05-26
0.0.7 2024-05-24
0.0.6 2024-05-17
0.0.5 2024-05-09
0.0.4 2024-05-08
0.0.3 2020-09-06
0.0.2 2020-09-06