Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Video<SS>

Type parameters

  • SS

Hierarchy

Index

Constructors

constructor

Properties

context

context: any

props

props: Readonly<VideoProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

unmount_callbacks

unmount_callbacks: function[]

video

video: any

Static Optional contextType

contextType: Context<any>

Methods

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void
  • Returns void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<VideoProps>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<VideoProps>
    • nextContext: any

    Returns void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<VideoProps>, nextState: Readonly<object>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<VideoProps>
    • nextState: Readonly<object>
    • nextContext: any

    Returns void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void
  • Returns void

componentDidUpdate

  • componentDidUpdate(): void
  • Returns void

Optional componentWillMount

  • componentWillMount(): void
  • Returns void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<VideoProps>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<VideoProps>
    • nextContext: any

    Returns void

componentWillUnmount

  • componentWillUnmount(): void
  • Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<VideoProps>, nextState: Readonly<object>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<VideoProps>
    • nextState: Readonly<object>
    • nextContext: any

    Returns void

forceUpdate

  • forceUpdate(callback: undefined | function): void
  • Parameters

    • Optional callback: undefined | function

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<VideoProps>, prevState: Readonly<object>): SS | null
  • Parameters

    • prevProps: Readonly<VideoProps>
    • prevState: Readonly<object>

    Returns SS | null

onLoaded

  • onLoaded(video: any): void
  • Parameters

    • video: any

    Returns void

onLoadedMetadata

  • onLoadedMetadata(video: any): void
  • Parameters

    • video: any

    Returns void

onTimeUpdate

  • onTimeUpdate(video: any): void
  • Parameters

    • video: any

    Returns void

pause

  • pause(): void

play

  • play(): void

render

  • render(): Element
  • Returns Element

setState

  • setState<K>(state: function | null | S | object, callback: undefined | function): void
  • Type parameters

    • K: keyof object

    Parameters

    • state: function | null | S | object
    • Optional callback: undefined | function

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<VideoProps>, nextState: Readonly<object>, nextContext: any): boolean
  • Parameters

    • nextProps: Readonly<VideoProps>
    • nextState: Readonly<object>
    • nextContext: any

    Returns boolean

toggle

  • toggle(): void

Object literals

state

state: object

loaded

loaded: boolean = false

Generated using TypeDoc