playerx
playerx copied to clipboard
Media Player Web Component - Uniform Player API - Supports HLS, Dash, Mux, Vimeo, YouTube, JW Player, Wistia
npm: npm i playerx
cdn: https://unpkg.com/playerx
module: https://unpkg.com/playerx?module
Features
- Uniform player API across player platforms. Mimics the
HTMLMediaElementAPI when possible. - UI framework independent, intentionally uses no specific framework to have great interop across the board and keep the bundle size in check.
Usage (Codesandbox)
<script src="https://unpkg.com/playerx"></script>
<player-x src="https://vimeo.com/638369396" controls></player-x>
Demo page: dev.playerx.io/demo
Supported media
- YouTube videos use the YouTube iFrame Player API
- Vimeo videos use the Vimeo Player API
- Wistia videos use the Wistia Player API
- JW Player videos use the JW Player API
- Supported file types are playing using
<video>or<audio>elements
Related
- Media Chrome Your media player's dancing suit. 🕺
<mux-video>A Mux-flavored HTML5 video element w/ hls.js and Mux data builtin.<videojs-video>A web component for Video.js.<wistia-video>A web component for the Wistia player.<vimeo-video>A web component for the Vimeo player.<jwplayer-video>A web component for the JW player.<hls-video>A web component for playing HTTP Live Streaming (HLS) videos.castable-videoCast your video element to the big screen with ease!<mux-player>The official Mux-flavored video player web component.
Big Thanks
To all the services that offered free plans for building, testing and measuring!