@zezosoft/react-player
Version:
A lightweight and customizable video player by Zezosoft, built for seamless streaming with advanced controls, adaptive playback, and modern UI. Perfect for web and React applications.
26 lines (25 loc) • 977 B
TypeScript
import Hls from "hls.js";
interface VideoState {
videoRef: HTMLVideoElement | null;
setVideoRef: (ref: HTMLVideoElement) => void;
videoWrapperRef: HTMLDivElement | null;
setVideoWrapperRef: (ref: HTMLDivElement) => void;
isPlaying: boolean;
setIsPlaying: (isPlaying: boolean) => void;
controls: boolean;
setControls: (controls: boolean) => void;
currentTime: number;
setCurrentTime: (currentTime: number) => void;
hlsInstance?: Hls;
setHlsInstance: (hlsInstance: Hls) => void;
qualityLevels?: Hls["levels"];
setQualityLevels: (qualityLevels: Hls["levels"]) => void;
activeQuality?: string;
setActiveQuality: (activeQuality: string) => void;
isFullscreen?: boolean;
setIsFullscreen: (isFullscreen: boolean) => void;
duration?: number;
setDuration: (duration: number) => void;
}
export declare const useVideoStore: import("zustand").UseBoundStore<import("zustand").StoreApi<VideoState>>;
export {};