react-all-player
Version:
react-all-player is a simple, lightweight, accessible and customizable React media player that supports modern browsers.
15 lines (14 loc) • 571 B
TypeScript
import React from 'react';
interface ContextValue {
isInteracting: boolean;
setIsInteracting: React.Dispatch<React.SetStateAction<boolean>>;
isShowingIndicator: boolean;
setIsShowingIndicator: React.Dispatch<React.SetStateAction<boolean>>;
}
interface VideoContextProviderProps {
defaultValue?: boolean;
}
export declare const VideoInteractingContext: React.Context<ContextValue>;
export declare const VideoInteractingContextProvider: React.FC<VideoContextProviderProps>;
export declare const useInteract: () => ContextValue;
export {};