@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.
18 lines (17 loc) • 648 B
TypeScript
import { VideoState } from "../../store/types/StoreTypes";
interface UsePrimaryVideoLifecycleParams {
hasPreRoll: boolean;
trackSrc: string;
}
interface PrimaryVideoLifecycleResult {
registerVideoRef: (node: HTMLVideoElement | null) => void;
videoRef: HTMLVideoElement | null;
isAdPlaying: boolean;
currentAd: VideoState["currentAd"];
adType: VideoState["adType"];
initialAdFinished: boolean;
shouldCoverMainVideo: boolean;
shouldShowPlaceholder: boolean;
}
export declare const usePrimaryVideoLifecycle: ({ hasPreRoll, trackSrc, }: UsePrimaryVideoLifecycleParams) => PrimaryVideoLifecycleResult;
export {};