public interface

PreviewingVideoGraph.Factory

 androidx.media3.common.PreviewingVideoGraph.Factory

Subclasses:

PreviewingSingleInputVideoGraph.Factory

Overview

A factory for creating a PreviewingVideoGraph.

Summary

Methods
public PreviewingVideoGraphcreate(Context context, ColorInfo outputColorInfo, DebugViewProvider debugViewProvider, VideoGraph.Listener listener, java.util.concurrent.Executor listenerExecutor, java.util.List<Effect> compositionEffects, long initialTimestampOffsetUs)

Creates a new PreviewingVideoGraph instance.

Methods

public PreviewingVideoGraph create(Context context, ColorInfo outputColorInfo, DebugViewProvider debugViewProvider, VideoGraph.Listener listener, java.util.concurrent.Executor listenerExecutor, java.util.List<Effect> compositionEffects, long initialTimestampOffsetUs)

Creates a new PreviewingVideoGraph instance.

Parameters:

context: A .
outputColorInfo: The ColorInfo for the output frames.
debugViewProvider: A DebugViewProvider.
listener: A .
listenerExecutor: The java.util.concurrent.Executor on which the listener is invoked.
compositionEffects: A list of effects to apply to the composition.
initialTimestampOffsetUs: The timestamp offset for the first frame, in microseconds.

Returns:

A new instance.