JavaScript video editor, encoder, and streamer - version 5.0.6

TimeRangeClass

add

addFrame

  • addFrame(frames: number): Time
  • Parameter

    frames: number

    Returns Time

addFrames

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

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

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