Options
All
  • Public
  • Public/Protected
  • All
Menu

Module components/videojsPlayer

Index

Type aliases

ToggleSizeButtonOptions

ToggleSizeButtonOptions: object

Type declaration

  • icon: string
  • onPress: function
      • (): void
      • Returns void

  • text: string

VideoPlayerProps

VideoPlayerProps: object & videojs.PlayerOptions

Properties for the VideoPlayer component, including all callbacks that can be called with the player buttons, as well as default videojs properties.

Functions

GetSegmentStarttime

  • GetSegmentStarttime(segName: string, segmentLength: number): number
  • Takes the filename of a segment of the stream and determines the time of the video when this segment started.

    Parameters

    • segName: string

      The filename of the segment.

    • segmentLength: number

    Returns number

    The time in seconds.

PrintTimestamp

  • PrintTimestamp(time: number): string
  • Takes a timestamp in seconds and converts it to a string with the format mm:ss:ms.

    Parameters

    • time: number

      The time in seconds.

    Returns string

    The time formatted as mm:ss.

VideoPlayer

  • Wrapper for a videojs player that adds custom functionality and syncing with bounding boxes.

    Parameters

    Returns Element

    A videojs player injected with custom functionality.

Made by Horyus. Documentation generated by TypeDoc.