LiveVideoSkin
The live video preset's default skin, which swaps time controls for a Live button
The default skin of the live video preset: the video layout with the time slider and time displays swapped for a Live button. MinimalLiveVideoSkin is the same preset’s other variant. See Skins for how packaged skins work and Presets for what the live video preset ships.
Import
import { LiveVideoSkin } from '@videojs/react/live-video';
import '@videojs/react/live-video/skin.css';import '@videojs/html/live-video/skin';The import registers the skin and every UI element it composes. The CDN player bundle registers this skin together with its player:
<script type="module" src="https://cdn.jsdelivr.net/npm/@videojs/cdn@10.0.0-beta.32/live-video.js"></script>Usage
The skin goes between the player and the media element. It renders its controls around the media.
<LiveVideoPlayer>
<LiveVideoSkin>
<HlsVideo src="live.m3u8" />
</LiveVideoSkin>
</LiveVideoPlayer><live-video-player>
<live-video-skin>
<hls-video src="live.m3u8"></hls-video>
</live-video-skin>
</live-video-player>The examples use the default HLS video element because most browsers can’t play HLS streams with a plain <video>. See Play live streams.
Poster
The skin renders a poster image before playback starts. Pass renderPoster to replace it with your own component.
The skin renders a poster image before playback starts. An element with slot="poster" replaces it.
See Add a poster and loading placeholder for complete examples.
Styling
Packaged skins style themselves and expose a small set of public CSS custom properties. Everything else inside the skin is private and may change between releases. Customize skins documents the properties. When you need deeper changes, eject the skin.
Eject the skin
The @videojs/live-video skin installs under components/videojs/skins/live-video. The player and media remain package imports. Follow Customize skins to set up the CLI, install the skin, and use the copied files.