Tomato Player docs

Everything from your first player to writing your own skins, plugins and streaming providers. New here? Start with Getting started; it takes about five minutes.

Start here

Getting startedInstall Tomato Player from npm or the CDN, create your first video player with a skin, add HLS streaming and plugins, and use it in React, Vue or Svelte.
ArchitectureHow Tomato Player is built: a dependency-free core with a state store, providers for playback engines, and separate skins, plugins and framework bindings.
TroubleshootingFixes for common Tomato Player problems: blocked autoplay, play() errors, iPhone fullscreen, NO_PROVIDER, cross-origin captions, SSR hydration and strict CSP.
MigrationMigration guides that map Plyr, Video.js, Vidstack and ReactPlayer options, events and APIs to their Tomato Player equivalents, with code side by side.

Guides

SkinsTomato Player ships nine swappable skins. Pick one, pass its options, theme it with --tp-* design tokens and CSS state attributes, or switch it at runtime.
PluginsTomato Player plugins add hotkeys, touch gestures, chapters, seek thumbnails, playlists, QoE analytics, Media Session and saved settings. Options and usage.
Streaming (HLS & DASH)Stream HLS with hls.js and MPEG-DASH with dash.js in Tomato Player. Both engines load lazily. Covers quality switching, live and DVR, and DRM configuration.
React, Vue & SvelteUse Tomato Player in React and Next.js, Vue and Nuxt, Svelte and SvelteKit, or any framework through the <tomato-player> web component. SSR-safe bindings.
CDN (jsDelivr)Load Tomato Player from jsDelivr with one script tag or ES modules and an import map, add HLS and DASH, pin a build and run it under a strict CSP.
IconsReplace any Tomato Player control icon by name with SVG markup or React components, including animated icons from @animateicons/react. Each skin ships its own icon set.
AccessibilityTomato Player targets WCAG 2.2 AA in every official skin: labelled buttons and sliders, visible focus, captions, a full keyboard map and reduced-motion support.

Extend

Custom skins guideThe complete guide to Tomato Player skins: theme with tokens, override CSS safely, build a skin from UI primitives, test it and publish it to npm. With example.
Create a skinThe short workflow for adding a skin to the Tomato Player monorepo: scaffold it with pnpm new, compose controls with createSkin, scope the CSS and validate it.
Create a pluginWrite a Tomato Player plugin with definePlugin: a setup() function that uses the player API and events, returns a typed API and cleans up everything it starts.
Create a providerProviders connect Tomato Player to a playback engine or platform such as Shaka, mpegts.js or an iframe API. Implement canPlay and create, and lazy-load it.

API reference

Player APIReference for createPlayer in Tomato Player: every option with its default, the state object, methods such as seek and setSkin, typed events and error codes.
UI primitivesReference for @tomato-player/ui: accessible buttons, sliders, menus, overlays, captions and layout helpers that every Tomato Player skin is built from.

Project

RoadmapWhat shipped in Tomato Player 0.1 and what comes next, prioritised from the research collection: P0 items first, then P1 and exploratory P2 work.
ChangelogRelease notes for Tomato Player. Version 0.1.0 is the first public release: core engine, UI primitives, nine skins, eight plugins, HLS and DASH, bindings.
ContributingHow to contribute to Tomato Player: set up the monorepo, scaffold skins and plugins, run the build, tests, validation and size checks, and open a pull request.
SecurityTomato Player security policy: which versions receive fixes during 0.x, how to report a vulnerability privately through GitHub advisories, and scope notes.
Code of conductTomato Player follows the Contributor Covenant 2.1. Be welcoming and respectful in issues, pull requests and discussions, and report problems privately.

Research

OverviewResearch behind Tomato Player, with sources linked inline: the player landscape, developer pain points, opportunities and the third-party integration strategy.
Player landscapeA sourced snapshot of 14 web video players and engines plus 12 building blocks, comparing license, latest version, maintenance status and bundle size.
Developer pain pointsFourteen recurring problems developers report with web video players, each with linked evidence from issues and docs and the Tomato Player design decision.
OpportunitiesOpportunities and differentiators for a new web video player, ranked P0 to P2 against what Video.js 10 and other players already ship, with sources.
Integration strategyHow Tomato Player integrates hls.js, dash.js and other engines: optional peer dependencies behind provider and plugin interfaces, loaded only when needed.