Repository URL to install this package:
|
Version:
2.7.3 ▾
|
/// <reference types="react" />
export declare type VideoSourceType = 'webm' | 'ogg' | 'mp4' | string;
export declare type AutoPlay = boolean | undefined;
export declare type URL = string;
export declare type SourceType = VideoSourceType | Array<VideoSourceType>;
export interface SourceProps {
src: SourceType;
}
export interface VanillaVideoTypes<Type = any> extends React.VideoHTMLAttributes<Type> {
ref: HTMLMediaElement;
shouldAutoPlay?: boolean;
muted?: boolean;
shouldLoop?: boolean;
src?: string;
}
export interface VideoTypes {
src: SourceType;
cover: URL;
shouldAutoPlay?: AutoPlay;
shouldLoop?: boolean;
enableControls?: boolean;
muted?: boolean;
preload?: 'auto';
className?: string;
isPaused?: boolean | undefined;
}
export { VideoTypes as VideoProps };
export interface AliasedVideoTypes extends VideoTypes {
shouldAutoplay?: boolean;
thumbnailImage?: string;
poster?: string;
}