PreviewingMultipleInputVideoGraph.Factory


public final class PreviewingMultipleInputVideoGraph.Factory implements PreviewingVideoGraph.Factory


A factory for creating a PreviewingMultipleInputVideoGraph.

Summary

Public constructors

Creates a new factory that uses the DefaultVideoFrameProcessor.Factory with its default values.

Public methods

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

Creates a new PreviewingVideoGraph instance.

boolean

Returns whether the VideoGraph implementation supports registering multiple inputs.

Public constructors

Factory

public Factory()

Creates a new factory that uses the DefaultVideoFrameProcessor.Factory with its default values.

Public methods

create

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

Creates a new PreviewingVideoGraph instance.

Parameters
Context context

A Context.

ColorInfo outputColorInfo

The ColorInfo for the output frames.

DebugViewProvider debugViewProvider

A DebugViewProvider.

VideoGraph.Listener listener

A Listener.

Executor listenerExecutor

The Executor on which the listener is invoked.

VideoCompositorSettings videoCompositorSettings

The VideoCompositorSettings.

List<Effect> compositionEffects

A list of effects to apply to the composition.

long initialTimestampOffsetUs

The timestamp offset for the first frame, in microseconds.

Returns
PreviewingVideoGraph

A new instance.

Throws
androidx.media3.common.VideoFrameProcessingException

If a problem occurs while creating the .

supportsMultipleInputs

public boolean supportsMultipleInputs()

Returns whether the VideoGraph implementation supports registering multiple inputs.