JavaScript video editor, encoder, switcher - version 5.1.1

Time

add

closest

copy

copy: Time

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

lengthSeconds: 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

seconds

seconds: number

startTime

startTime: Time

timeRange

timeRange: TimeRange

withFrame

  • withFrame(frame: number): Time
  • Parameter

    frame: number

    Returns Time