public abstract class

VideoSpec.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.video.VideoSpec.Builder

Overview

The builder of the VideoSpec.

Summary

Methods
public abstract VideoSpecbuild()

Builds the VideoSpec instance.

public abstract VideoSpec.BuildersetBitrate(<any> bitrate)

Sets the bitrate.

public abstract VideoSpec.BuildersetFrameRate(<any> frameRate)

Sets the frame rate.

public abstract VideoSpec.BuildersetQualitySelector(QualitySelector qualitySelector)

Sets the QualitySelector.

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

Methods

public abstract VideoSpec.Builder setQualitySelector(QualitySelector qualitySelector)

Sets the QualitySelector.

Video encoding parameters such as frame rate and bitrate will often be automatically determined according to quality. If video parameters are not set directly (such as through VideoSpec.Builder, the device will choose values calibrated for the quality on that device.

If not set, defaults to VideoSpec.QUALITY_SELECTOR_AUTO.

public abstract VideoSpec.Builder setFrameRate(<any> frameRate)

Sets the frame rate.

If not set, defaults to VideoSpec.FRAME_RATE_RANGE_AUTO.

public abstract VideoSpec.Builder setBitrate(<any> bitrate)

Sets the bitrate.

If not set, defaults to VideoSpec.BITRATE_RANGE_AUTO.

public abstract VideoSpec build()

Builds the VideoSpec instance.