Minimal skin

0.6 KB gzip

Minimal is the default Tomato Player skin: a single row of controls with a time slider, volume, captions, settings, picture-in-picture and fullscreen. It stays out of the way and fits any brand by changing one accent token.

Accent
Big Buck Bunny © Blender Foundation, CC BY 3.0, via Wikimedia Commons. HLS test stream by Mux, DASH by Akamai.

Install and use

npm i @tomato-player/core @tomato-player/skin-minimal
player.ts — ts
import { createPlayer } from '@tomato-player/core';
import { minimal } from '@tomato-player/skin-minimal';
​
createPlayer('#player', {
src: 'movie.mp4',
skin: minimal(),
});

At a glance

Options

Pass these to minimal(). Every skin also accepts design tokens through createPlayer({ tokens }).

OptionTypeDescription
pipbooleanShow the picture-in-picture button (default true).
settingsbooleanShow the settings menu with speed, quality and captions (default true).

More editions

Cinema skinNo.02 CinemaPremium cinematic look with a serif title, eyebrow and gold accent.
Studio skinNo.03 StudioPro toolbar with SMPTE timecode, frame stepping and A-B loop.
Creator skinNo.04 CreatorFloating glass pill controls with a vivid two-stop gradient.
Learn skinNo.05 LearnFor courses: speed chips, ±10 s, chapter panel and large captions.