GitHub
  • Preparing search index...
  • The search index is not available
@theoplayer/react-ui
  • @theoplayer/react-ui
  • useDuration

Function useDuration

  • useDuration(): number

    Returns the player's duration, automatically updating whenever it changes.

    This hook must only be used in a component mounted inside a DefaultUI or UIContainer, or alternatively any other component that provides a PlayerContext.

    Returns number

    • Defined in react/src/hooks/useDuration.ts:15

Settings

Member Visibility
GitHub
@theoplayer/react-ui
  • Loading...

Generated using TypeDoc