Scarlett Player

Lightweight, plugin-based video player

Or enter a custom URL

Active Plugins

Core HLS Native (MP4/WebM) UI Controls AirPlay Chromecast
TypeScript
import { ScarlettPlayer } from '@scarlett-player/core';
import { createHLSPlugin } from '@scarlett-player/hls';
import { createNativePlugin } from '@scarlett-player/native';
import { uiPlugin } from '@scarlett-player/ui';
import { airplayPlugin } from '@scarlett-player/airplay';
import { chromecastPlugin } from '@scarlett-player/chromecast';

// Create the player
const player = new ScarlettPlayer({
  container: document.getElementById('player'),
  src: 'https://example.com/video.m3u8',
  plugins: [
    createHLSPlugin(),
    createNativePlugin(),
    uiPlugin({
      hideDelay: 3000,
      theme: { accentColor: '#e50914' }
    }),
    airplayPlugin(),
    chromecastPlugin(),
  ],
});

// Initialize and start playback
await player.init();

Player State

State
Loading...
Time
0:00 / 0:00
Quality
Auto
Buffered
0%
Console output will appear here...