@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
47 lines (46 loc) • 963 B
TypeScript
export interface AutoPlayerProps {
/**
* Handles player autoplay
* @default true
*/
enableAutoplay?: boolean;
/**
* Handles player loop
* @default false
*/
loop?: boolean;
/**
* Handles player mute
* @default true
*/
muted?: boolean;
/**
* Applies the playsinline attribute where supported
* @default true
*/
playsinline?: boolean;
/**
* Handles player controls
* @default true
*/
controls?: boolean;
/**
* Handles player stop on component mount
* @default true
*/
stopOnUnmount?: boolean;
/**
* Handles player pip
* @default true
*/
pip?: boolean;
/**
* Callback fired when video is played for more than 10 secs
*/
onVideoWatch?: () => void;
/**
* Any other properties
*/
[p: string]: any;
}
export default function AutoPlayer(props: AutoPlayerProps): JSX.Element;