react-advanced-video-player
Version:
React Advanced Video Player is a customizable and feature-rich video player for React applications. It supports multiple video formats, subtitles, quality selection, Picture-in-Picture mode, playback speed adjustment, and more, providing a seamless media
35 lines (31 loc) • 835 B
TypeScript
import React from 'react';
interface VideoSource {
src: string;
quality: string;
label: string;
}
interface SubtitleTrack {
src: string;
label: string;
srclang: string;
}
interface CustomTheme {
primary: string;
secondary: string;
background: string;
text: string;
accent: string;
}
interface VideoPlayerProps {
sources: VideoSource[];
subtitles?: SubtitleTrack[];
poster?: string;
onNext?: () => void;
onPrevious?: () => void;
autoPlay?: boolean;
className?: string;
theme?: 'default' | 'minimal' | 'dark' | 'neon' | 'light' | 'ocean' | CustomTheme;
isDeveloperModeDisabled?: boolean;
}
declare const VideoPlayer: React.FC<VideoPlayerProps>;
export { type SubtitleTrack, VideoPlayer, type VideoPlayerProps, type VideoSource, VideoPlayer as default };