Learn skin

3.5 KB gzip

Learn is an education skin: prominent speed chips, ±10 second skips, a chapter panel and large, readable captions. It is designed for courses, lectures and tutorials.

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-learn
player.ts — ts
import { createPlayer } from '@tomato-player/core';
import { learn } from '@tomato-player/skin-learn';
​
createPlayer('#player', {
src: 'movie.mp4',
skin: learn(),
});

At a glance

Options

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

OptionTypeDescription
ratesnumber[]Speed chips to show (default 0.75, 1, 1.25, 1.5, 2).
seekStepnumberSeconds to skip (default 10).
chapterPanelbooleanShow the chapter list panel (default true).

More editions

Minimal skinNo.01 MinimalClean, lightweight controls. The default skin.
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.