Stream skin

Unofficial2.6 KB gzip

Stream is an unofficial skin inspired by streaming-service patterns: large icons, ±10 second skips, a centered episode title and a next-episode button. It uses no third-party logos or assets and implies no affiliation.

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

At a glance

Options

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

OptionTypeDescription
subtitlestringEpisode line under the title.
onNext() => voidShows a next-episode button when set.
nextLabelstringLabel of the next button.
onBack() => voidShows a back arrow when set.
Unofficial, platform-inspired design
This skin recreates common interaction patterns only. It uses no third-party logos, fonts or assets and implies no affiliation or endorsement.

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.