diff --git a/README.md b/README.md index 22482ea..6d23b7b 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,4 @@ A collection of HTMLMediaElement compatible elements and add-ons. | [``](packages/jwplayer-video-element) | A custom video element for JW Player. | | [``](packages/twitch-video-element) | A custom video element for Twitch player. | | [``](packages/cloudflare-video-element) | A custom video element for Cloudflare Stream. | -| [``](packages/peertube-video-element) | A custom video element for PeerTube player. | - -## Browser support - -The packages in this repo are distributed as **ESNext** — including modern JavaScript features like [private class fields](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties). This is intentional: these packages are designed to be imported and processed by your own bundler or build tool, which is responsible for transpiling to your target browsers. - -If you need to support browsers that don't have these features natively (e.g. Safari < 14.1), configure your bundler to include these packages in its transpilation step and set your desired target (e.g. `es2019`). - -> **Note:** Unlike [`media-chrome`](https://github.com/muxinc/media-chrome), which ships pre-transpiled to `es2019`, the packages in this repository are distributed as ESNext. You are responsible for configuring your build pipeline to handle any necessary transpilation for your target environments. +| [``](packages/peertube-video-element) | A custom video element for PeerTube player. | \ No newline at end of file diff --git a/packages/peertube-video-element/peertube-video-element.js b/packages/peertube-video-element/peertube-video-element.js index c0390ee..019be6e 100644 --- a/packages/peertube-video-element/peertube-video-element.js +++ b/packages/peertube-video-element/peertube-video-element.js @@ -143,7 +143,7 @@ class PublicPromise extends Promise { } } -class PeerTubeVideoElement extends MediaPlayedRangesMixin(MediaTracksMixin(globalThis.HTMLElement ?? class {})) { +class PeerTubeVideoElement extends MediaPlayedRangesMixin(MediaTracksMixin(HTMLElement)) { static getTemplateHTML = getTemplateHTML; static shadowRootOptions = { mode: "open" }; static observedAttributes = [