Campus skin

4.9 KB gzip

Campus is ported from the CampusLoop landing page: a playful paper-sticker control strip, sticker-style captions, a speed cycle and tap-to-unmute. It is portrait-first and can autoplay muted when scrolled into view.

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

At a glance

Options

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

OptionTypeDescription
playLabelstringLabel of the big play pill (default "Play the video").
autoplayInViewbooleanAutoplay muted when scrolled into view.
errorMessagestringMessage shown when the media fails.
theme'light' | 'dark' | 'auto'Sticker color scheme.

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.