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

FormWhat you get
Vue 3VideoPlayer, VideoCard, VideoStage, VideoPlaceholder, 13 headless controls - or app.use(VideoPlayerPlugin) for all of them
Web componentsThe same source as <ml-video-*> and <ml-video-*> elements, for any framework or none
No-build / CDNImport 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…

Live VideoCard, built from this repo's source.

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…

Where to start

Installation

Install, mount a video, read the state-change stream.

Components

The four components and which one to reach for.

Platforms

Every source it plays, and how detection works.

Web components

The ml-* bundles, and loading from a CDN.

API reference

Props, methods & state, events, headless controls.

Features

Viewport, stage & playlists, transcripts, captions, quality, ads, theming.
munsonlabs · MIT licensed · © 2026