ETASCOM CRM V3 - Documentation API
    Preparing search index...
    interface VideoTextProps {
        src: string | string[];
        children: ReactNode;
        className?: string;
        autoPlay?: boolean;
        muted?: boolean;
        loop?: boolean;
        preload?: "metadata" | "none" | "auto";
        fontSize?: string | number;
        fontWeight?: string | number;
        as?: ElementType;
        onPlay?: () => void;
        onPause?: () => void;
        onEnded?: () => void;
    }
    Index

    Properties

    src: string | string[]

    The video source URL or array of sources for multiple formats

    children: ReactNode

    The content to display (will have the video "inside" it)

    className?: string

    Additional className for the container

    autoPlay?: boolean

    Whether to autoplay the video

    true
    
    muted?: boolean

    Whether to mute the video

    true
    
    loop?: boolean

    Whether to loop the video

    true
    
    preload?: "metadata" | "none" | "auto"

    Whether to preload the video

    "auto"
    
    fontSize?: string | number

    Font size for the text mask (in viewport width units or CSS units)

    "20vw"
    
    fontWeight?: string | number

    Font weight for the text mask

    "bold"
    
    as?: ElementType

    The element type to render for the container

    "div"
    
    onPlay?: () => void

    Callback when video starts playing

    onPause?: () => void

    Callback when video is paused

    onEnded?: () => void

    Callback when video ends