public final class

CompositingVideoSinkProvider.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.video.CompositingVideoSinkProvider.Builder

Overview

A builder for CompositingVideoSinkProvider instances.

Summary

Constructors
publicBuilder(Context context, VideoFrameReleaseControl videoFrameReleaseControl)

Creates a builder.

Methods
public CompositingVideoSinkProviderbuild()

Builds the CompositingVideoSinkProvider.

public CompositingVideoSinkProvider.BuildersetClock(Clock clock)

Sets the Clock that will be used.

public CompositingVideoSinkProvider.BuildersetPreviewingVideoGraphFactory(PreviewingVideoGraph.Factory previewingVideoGraphFactory)

Sets the that will be used for creating PreviewingVideoGraph instances.

public CompositingVideoSinkProvider.BuildersetVideoFrameProcessorFactory(VideoFrameProcessor.Factory videoFrameProcessorFactory)

Sets the that will be used for creating VideoFrameProcessor instances.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(Context context, VideoFrameReleaseControl videoFrameReleaseControl)

Creates a builder.

Methods

public CompositingVideoSinkProvider.Builder setVideoFrameProcessorFactory(VideoFrameProcessor.Factory videoFrameProcessorFactory)

Sets the that will be used for creating VideoFrameProcessor instances.

By default, the DefaultVideoFrameProcessor.Factory with its default values will be used.

Parameters:

videoFrameProcessorFactory: The .

Returns:

This builder, for convenience.

public CompositingVideoSinkProvider.Builder setPreviewingVideoGraphFactory(PreviewingVideoGraph.Factory previewingVideoGraphFactory)

Sets the that will be used for creating PreviewingVideoGraph instances.

By default, the PreviewingSingleInputVideoGraph.Factory will be used.

Parameters:

previewingVideoGraphFactory: The .

Returns:

This builder, for convenience.

Sets the Clock that will be used.

By default, Clock.DEFAULT will be used.

Parameters:

clock: The Clock.

Returns:

This builder, for convenience.

Builds the CompositingVideoSinkProvider.

This method must be called at most once and will throw an java.lang.IllegalStateException if it has already been called.