Getting Started
Introduction
What @munsonlabs/video-player is, the three ways to use it, and live demos of both.
@munsonlabs/video-player plays MP4/HLS/DASH, YouTube, Vimeo, Dailymotion, Brightcove, and JW Player behind one component API, with Google IMA ads and Prebid.js header bidding. Its icons come from @munsonlabs/sigil, so a page can replace them without forking; nothing else in this repo is shared.
Ways to use it
| Form | What you get |
|---|---|
| Vue 3 | VideoPlayer, VideoCard, VideoStage, VideoPlaceholder, 13 headless controls - or app.use(VideoPlayerPlugin) for all of them |
| Web components | The same source as <ml-video-*> and <ml-video-*> elements, for any framework or none |
| No-build / CDN | Import the /element bundle via an import map and drop tags into HTML |
Three bundles - /element (everything), /element/core (player tags), /element/controls (controls only) - each with a matching /style* entry point, so you ship only the CSS you render.
See it running
Loading player…
The published package
The examples above are built from source. This one is the published npm artifact instead - the /element web-component bundle, fetched from a CDN at page load, wired up exactly as the web component docs describe:
Loading player from npm…