JavaScript video editor, encoder, and streamer - version 5.0.6

TimeClass

add

addFrame

  • addFrame(frames: number): Time
  • Parameter

    frames: number

    Returns Time

constructor

  • new TimeClass(frame?: number, fps?: number): TimeClass
  • Parameters

    • Optional frame: number
    • Optional fps: number

    Returns TimeClass

copy

description

  • get description(): string
  • Returns string

divide

  • divide(number: number, rounding?: string): Time
  • Parameters

    • number: number
    • Optional rounding: string

    Returns Time

equalsTime

  • equalsTime(time: Time): boolean
  • Parameter

    time: Time

    Returns boolean

fps

fps: number

frame

frame: number

isRange

isRange: boolean

lengthSeconds

  • get lengthSeconds(): number
  • Returns number

min

scale

  • scale(fps: number, rounding?: string): Time
  • Parameters

    • fps: number
    • Optional rounding: string

    Returns Time

scaleToFps

  • scaleToFps(fps: number): Time
  • Parameter

    fps: number

    Returns Time

scaleToTime

seconds

  • get seconds(): number
  • Returns number

startTime

  • get startTime(): Time

subtract

subtractFrames

  • subtractFrames(frames: number): Time
  • Parameter

    frames: number

    Returns Time

timeRange

toString

  • toString(): string
  • Returns string

withFrame

  • withFrame(frame: number): Time
  • Parameter

    frame: number

    Returns Time