@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.
25 lines (24 loc) • 971 B
TypeScript
import { StateCreator } from "zustand";
import { AdBreak, AdType } from "../../VideoPlayer/types/AdTypes";
import { VideoState } from "../types/StoreTypes";
export interface AdsState {
isAdPlaying: boolean;
setIsAdPlaying: (isAdPlaying: boolean) => void;
currentAd: AdBreak | null;
setCurrentAd: (ad: AdBreak | null) => void;
adType: AdType | null;
setAdType: (type: AdType | null) => void;
adCurrentTime: number;
setAdCurrentTime: (time: number) => void;
canSkipAd: boolean;
setCanSkipAd: (canSkip: boolean) => void;
skipCountdown: number;
setSkipCountdown: (countdown: number) => void;
playedAdBreaks: string[];
addPlayedAdBreak: (id: string) => void;
midRollQueue: AdBreak[];
setMidRollQueue: (queue: AdBreak[]) => void;
adVideoRef: HTMLVideoElement | null;
setAdVideoRef: (ref: HTMLVideoElement | null) => void;
}
export declare const createAdsSlice: StateCreator<VideoState, [], [], AdsState>;