CompositionFrameMetadata


@ExperimentalApi
public class CompositionFrameMetadata implements HardwareBufferFrame.Metadata


Metadata included on HardwareBufferFrames in CompositionPlayer.

Applications can extend this class to add custom metadata.

Summary

Constants

static final String
KEY_COMPOSITION_FRAME_METADATA = "KEY_COMPOSITION_FRAME_METADATA"

Metadata key for storing the composition frame metadata.

Public fields

final Composition

The Composition that this frame belongs to.

final int

The media item index in the sequence that this frame belongs to.

final int

The sequence index in the composition that this frame belongs to.

Public constructors

CompositionFrameMetadata(
    Composition composition,
    int sequenceIndex,
    int itemIndex
)

Creates a new instance.

Constants

KEY_COMPOSITION_FRAME_METADATA

public static final String KEY_COMPOSITION_FRAME_METADATA = "KEY_COMPOSITION_FRAME_METADATA"

Metadata key for storing the composition frame metadata.

Public fields

composition

public final Composition composition

The Composition that this frame belongs to.

itemIndex

public final int itemIndex

The media item index in the sequence that this frame belongs to.

sequenceIndex

public final int sequenceIndex

The sequence index in the composition that this frame belongs to.

Public constructors

CompositionFrameMetadata

public CompositionFrameMetadata(
    Composition composition,
    int sequenceIndex,
    int itemIndex
)

Creates a new instance.