JavaScript video editor, encoder, and streamer - version 5.0.6

TrackClass

addClip

  • addClip(clip: Clip, insertIndex?: number): void
  • Parameters

    • clip: Clip
    • Optional insertIndex: number

    Returns void

assureFrame

  • assureFrame(clips?: Clips): boolean
  • Parameter

    Optional clips: Clips

    Returns boolean

assureFrames

  • assureFrames(quantize: number, clips?: Clips): boolean
  • Parameters

    • quantize: number
    • Optional clips: Clips

    Returns boolean

clips

clips: Clips

constructor

dense

dense: boolean

frameForClipNearFrame

  • frameForClipNearFrame(clip: Clip, frame?: number): number
  • Parameters

    • clip: Clip
    • Optional frame: number

    Returns number

frames

  • get frames(): number
  • Returns number

getPropertiedProperty

  • getPropertiedProperty(key: string): undefined | Property
  • Parameter

    key: string

    Returns undefined | Property

getPropertiedValue

layer

layer: number

properties

property

  • property(key: string): undefined | Property
  • Parameter

    key: string

    Returns undefined | Property

removeClip

  • removeClip(clip: Clip): void
  • Parameter

    clip: Clip

    Returns void

setPropertiedValue

setValue

sortClips

  • sortClips(clips?: Clips): boolean
  • Parameter

    Optional clips: Clips

    Returns boolean

toJSON

trackType

trackType: TrackType

value