Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Context

Context

The video context.

Hierarchy

  • Context

Index

Properties

Optional audioLevel

audioLevel: number

The audio level (read-only) of the composition. This is a normalized value between 0.0 and 1.0.

type

float

compositionTime

compositionTime: number

The current time (read-only) in the composition.

type

double

elapsedFrames

elapsedFrames: number

The number of elapsed (read-only) of the composition.

type

float

Optional faceFeatures

faceFeatures: object

A list of face features detected. This is a list of objects containing the following properties:

{ bounds: { x, y, width, height }, hasLeftEyePosition: true/false, leftEyePosition: { x, y }, hasRightEyePosition: true/false, rightEyePosition: { x, y }, hasMouthPosition: true/false, mouthPosition: { x, y }, hasSmile: true/false, leftEyeClosed: true/false, rightEyeClosed: true/false, hasFaceAngle: true/false, faceAngle: double }

type

Array

faceLandmarks

faceLandmarks: object

Needs docs

frameRate

frameRate: number

The frame rate (read-only) of the composition.

type

float

height

height: number

The height (read-only) of the composition.

type

float

openGl

openGl: OpenGl

Needs docs

time

time: number

The "tween" time (read-only) for the composition. This is a normalized value between 0.0 and 1.0.

type

float

width

width: number

The width (read-only) of the composition.

type

float

Methods

getImageBuffer

  • Returns an image buffer associated with the specified key or null.

    see

    context#setImageBuffer, ImageBuffer

    Parameters

    • key: string

    Returns ImageBuffer

setImageBuffer

  • setImageBuffer(imageBuffer: ImageBuffer, key: string): void
  • Sets an image buffer for the specified key.

    see

    context#getImageBuffer, ImageBuffer

    Parameters

    Returns void

Generated using TypeDoc