Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Track

Track

Represents a video or audio track.

Hierarchy

  • Track

Index

Constructors

constructor

  • new Track(name: string): Track
  • Creates a Track object with the specified name. If the name is empty a system track name will be generated automatically.

    Track name(s) 'a - z' are reserved.

    Parameters

    • name: string

    Returns Track

Properties

audioLevelEnabled

audioLevelEnabled: boolean

Sets whether the audio level detection is enabled on this track. Audio level detection is done before and rendering starts. So the time it takes to grab levels for a track depends on the track's length.

This does nothing if this track is a video track (contains a or more video clips)

emptyClipOpacity

emptyClipOpacity: number

Sets the opacity that should be applied to all empty clips (if any) on this track.

faceFeaturesAccuracy

faceFeaturesAccuracy: string

Sets the face detection accuracy, available values are 'low' (default) and 'high'. 'high' accuracy always uses more CPU/GPU (depending on the platform iOS macOS etc.) than the default 'low' level.

faceFeaturesEnabled

faceFeaturesEnabled: boolean

Sets whether face detection is enabled on this track.

This does nothing if this track is an audio track (contains a or more audio clips).

Only one track in the composition can have its face detection enabled.

faceFeaturesFrameInterval

faceFeaturesFrameInterval: number

Sets the frame interval at which the face feature detection should occur.

faceFeaturesMaximumFrameWidth

faceFeaturesMaximumFrameWidth: number

Sets the maximum frame width that should be used when detecting face features.

faceLandmarksEnabled

faceLandmarksEnabled: boolean

Sets whether the face landmark detection is enabled on this track.

Optional lastClip

lastClip: Clip

Returns the last clip "in time" on this track or null.

returns

Clip

Methods

add

  • Adds a clip to this track at the specified time. If you don't pass the time or time is null then the clip will be added after the last clip (last clip's end-time) or at 0 if this is the first clip being added to this track.

    Parameters

    • clip: Clip
    • time: number

    Returns Clip

scale

  • scale(startTime: number, durations: number, finalDuration: number): void
  • Scales the track from the specified startTime for the durations to the specified finalDuration.

    Parameters

    • startTime: number
    • durations: number
    • finalDuration: number

    Returns void

Generated using TypeDoc