cloudflare-video-element

A custom element for the Cloudflare player with an API that matches the `<video>` API

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

<cloudflare-video>

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

A custom element for the Cloudflare player with an API that matches the <video> API.

Example

<script type="module" src="https://cdn.jsdelivr.net/npm/cloudflare-video-element@1.0/+esm"></script>
<cloudflare-video controls src="https://watch.videodelivery.net/bfbd585059e33391d67b0f1d15fe6ea4"></cloudflare-video>

Installing

First install the NPM package:

npm install cloudflare-video-element

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

import 'cloudflare-video-element';

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

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

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

版本列表
1.3.5 2025-11-25
1.3.4 2025-08-08
1.3.3 2025-07-15
1.3.2 2025-06-26
1.3.1 2025-03-12
1.3.0 2024-12-19
1.2.0 2024-12-19
1.1.6 2024-06-14
1.1.5 2024-05-27
1.1.4 2024-05-26
1.1.3 2024-05-24
1.1.2 2024-05-17
1.1.1 2024-05-09
1.1.0 2024-05-08
1.0.3 2024-04-21
1.0.2 2023-09-17
1.0.1 2023-08-06
1.0.0 2023-04-07
0.1.0 2023-04-07