@lightbird/core
v0.12.0
Published
Client-side video player engine. Plays MKV, MP4, WebM with full subtitle, audio track, and chapter support. No server required.
Downloads
1,574
Maintainers
Readme
@lightbird/core
Client-side video player engine for the browser. Plays MKV, MP4, WebM, AVI, and more — with full subtitle, audio track, and chapter support. No server required.
Documentation | Live Demo | GitHub
Install
npm install @lightbird/coreQuick Start
import { createVideoPlayer } from '@lightbird/core'
const player = createVideoPlayer(file)
await player.initialize(videoElement)React Hooks
import { useVideoPlayback, useSubtitles } from '@lightbird/core/react'
const { isPlaying, togglePlay, seek } = useVideoPlayback(videoRef)Full UI Component
npm install @lightbird/core @lightbird/player-reactimport { LightBirdPlayer } from '@lightbird/player-react'
<LightBirdPlayer />Features
- MKV playback — FFmpeg.wasm client-side remuxing
- Subtitles — SRT, VTT, ASS/SSA with encoding detection and sync offset
- Audio tracks — Multi-track switching for MKV
- Chapters — Auto-extraction, seek bar markers, navigation
- Playlist — Drag-and-drop, M3U8 import/export
- More — PiP, Media Session, keyboard shortcuts, video filters, screenshots
Documentation
Full API reference, examples, and integration guides at lightbird.vercel.app/docs
License
MIT
