JavaScript video editor, encoder, switcher - version 5.1.1

TimeClass

add

addFrame

  • addFrame(frames: number): Time
  • Parameter

    frames: number

    Returns Time

closest

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

durationFrames

  • durationFrames(duration: number, fps?: number): number[]
  • Parameters

    • duration: number
    • Optional fps: number

    Returns number[]

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