JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q52717F
  • License MIT

MPEG2-TS Video Web Component

Package Exports

  • mpegts-video-element

Readme

<mpegts-video>

Version

A custom element for mpegts.js with an API that aims to match the <video> API.

Example

<mpegts-video muted autoplay controls src="http://81.94.196.204/tsstreamer/France24_HD.ts"></mpegts-video>

Install

First install the NPM package:

# with pnpm
pmpm add mpegts-video-element

# with yarn
yarn add mpegts-video-element

# with npm
npm install mpegts-video-element

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

import "mpegts-video-element";

Optionally, you can load the script directly from a CDN using esm.run:

<script type="module" src="https://esm.run/mpegts-video-element"></script>

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