JavaScript video editor, encoder, switcher - version 5.1.1

TimeRangeClass

add

addFrame

  • addFrame(frames: number): Time
  • Parameter

    frames: number

    Returns Time

addFrames

closest

constructor

  • new TimeRangeClass(frame?: number, fps?: number, frames?: number): TimeRangeClass
  • Parameters

    • Optional frame: number
    • Optional fps: number
    • Optional frames: number

    Returns TimeRangeClass

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[]

end

  • get end(): number
  • Returns number

endTime

equalsTime

  • equalsTime(time: Time): boolean
  • Parameter

    time: Time

    Returns boolean

equalsTimeRange

  • equalsTimeRange(timeRange: TimeRange): boolean

fps

fps: number

frame

frame: number

frameTimes

frames

frames: number

includes

  • includes(frame: number): boolean
  • Parameter

    frame: number

    Returns boolean

includesTime

  • includesTime(time: Time): boolean
  • Parameter

    time: Time

    Returns boolean

intersects

  • intersects(time: Time): boolean
  • Parameter

    time: Time

    Returns boolean

isRange

isRange: boolean

last

  • get last(): number
  • Returns number

lastTime

  • get lastTime(): Time

lengthSeconds

  • get lengthSeconds(): number
  • Returns number

min

minEndTime

position

  • get position(): number
  • Returns number

positionTime

  • positionTime(position: number, rounding?: string): Time
  • Parameters

    • position: number
    • Optional rounding: string

    Returns Time

scale

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

    • Optional fps: number
    • Optional rounding: string

    Returns TimeRange

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

times

toString

  • toString(): string
  • Returns string

withFrame

withFrames