interface VideoPlayerProps {
    config?: Config;
    controls?: boolean;
    fallback?: ReactElement<any, string | JSXElementConstructor<any>>;
    height?: string | number;
    interaction?: boolean;
    light?: string | boolean | ReactElement<any, string | JSXElementConstructor<any>>;
    loop?: boolean;
    muted?: boolean;
    onBuffer?: (() => void);
    onBufferEnd?: (() => void);
    onClickPreview?: ((event) => void);
    onDisablePIP?: (() => void);
    onDuration?: ((duration) => void);
    onEnablePIP?: (() => void);
    onEnded?: (() => void);
    onError?: ((error, data?, hlsInstance?, hlsGlobal?) => void);
    onPause?: (() => void);
    onPlay?: (() => void);
    onProgress?: ((state) => void);
    onReady?: ((player) => void);
    onSeek?: ((seconds) => void);
    onStart?: (() => void);
    opacity?: number;
    pip?: boolean;
    playIcon?: ReactElement<any, string | JSXElementConstructor<any>>;
    playbackRate?: number;
    playing?: boolean;
    playsinline?: boolean;
    previewTabIndex?: null | number;
    progressInterval?: number;
    stopOnUnmount?: boolean;
    style?: CSSProperties;
    url?: string | string[] | SourceProps[] | MediaStream;
    volume?: number;
    width?: string | number;
    wrapper?: ComponentType<{
        children: ReactNode;
    }>;
}

Hierarchy

  • ReactPlayerProps
    • VideoPlayerProps

Properties

config?: Config
controls?: boolean
fallback?: ReactElement<any, string | JSXElementConstructor<any>>
height?: string | number
interaction?: boolean
light?: string | boolean | ReactElement<any, string | JSXElementConstructor<any>>
loop?: boolean
muted?: boolean
onBuffer?: (() => void)

Type declaration

    • (): void
    • Returns void

onBufferEnd?: (() => void)

Type declaration

    • (): void
    • Returns void

onClickPreview?: ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: any

      Returns void

onDisablePIP?: (() => void)

Type declaration

    • (): void
    • Returns void

onDuration?: ((duration) => void)

Type declaration

    • (duration): void
    • Parameters

      • duration: number

      Returns void

onEnablePIP?: (() => void)

Type declaration

    • (): void
    • Returns void

onEnded?: (() => void)

Type declaration

    • (): void
    • Returns void

onError?: ((error, data?, hlsInstance?, hlsGlobal?) => void)

Type declaration

    • (error, data?, hlsInstance?, hlsGlobal?): void
    • Parameters

      • error: any
      • Optional data: any
      • Optional hlsInstance: any
      • Optional hlsGlobal: any

      Returns void

onPause?: (() => void)

Type declaration

    • (): void
    • Returns void

onPlay?: (() => void)

Type declaration

    • (): void
    • Returns void

onProgress?: ((state) => void)

Type declaration

    • (state): void
    • Parameters

      • state: OnProgressProps

      Returns void

onReady?: ((player) => void)

Type declaration

    • (player): void
    • Parameters

      • player: default

      Returns void

onSeek?: ((seconds) => void)

Type declaration

    • (seconds): void
    • Parameters

      • seconds: number

      Returns void

onStart?: (() => void)

Type declaration

    • (): void
    • Returns void

opacity?: number
pip?: boolean
playIcon?: ReactElement<any, string | JSXElementConstructor<any>>
playbackRate?: number
playing?: boolean
playsinline?: boolean
previewTabIndex?: null | number
progressInterval?: number
stopOnUnmount?: boolean
style?: CSSProperties
url?: string | string[] | SourceProps[] | MediaStream
volume?: number
width?: string | number
wrapper?: ComponentType<{
    children: ReactNode;
}>

Type declaration

  • children: ReactNode

Generated using TypeDoc