@werk1/w1-system-videoblock
Version:
Universal video player supporting YouTube, Vimeo, HLS, DASH with coordination and GSAP integration for W1 System
13 lines (12 loc) • 491 B
TypeScript
import type { W1VideoPlayerState } from "../../../types";
interface UseVideoStateProps {
muted: boolean;
isClient: boolean;
onStateChange?: (state: W1VideoPlayerState) => void;
}
export declare const useVideoState: ({ muted, isClient, onStateChange }: UseVideoStateProps) => {
state: W1VideoPlayerState;
setState: import("react").Dispatch<import("react").SetStateAction<W1VideoPlayerState>>;
updateState: (updates: Partial<W1VideoPlayerState>) => void;
};
export {};