Interface IVideoOptions

interface IVideoOptions {
    autoPlay?: boolean;
    containerStyle?: {
        [key: string]: string | null;
    };
    controls?: boolean;
    crossOrigin?: boolean;
    height?: string;
    isActived?: boolean;
    loop?: boolean;
    muted?: boolean;
    objectFit?: "fill" | "contain" | "cover";
    opacity?: string;
    playsInline?: boolean;
    poster?: string;
    preload?: "none" | "metadata" | "auto";
    src?: string;
    width?: string;
}

Properties

autoPlay?: boolean
containerStyle?: {
    [key: string]: string | null;
}

containerStyle设置,e.g.{'width':'100vw','height:'100vh'}

Type declaration

  • [key: string]: string | null
controls?: boolean

控制器面板

crossOrigin?: boolean
height?: string
isActived?: boolean

是否已经激活

loop?: boolean
muted?: boolean
objectFit?: "fill" | "contain" | "cover"
opacity?: string
playsInline?: boolean

默认不全屏显示

poster?: string
preload?: "none" | "metadata" | "auto"

预加载策略,默认auto尝试下载整个视频资源,在iOS Safari浏览器下被禁止

src?: string
width?: string

Generated using TypeDoc