public abstract class

AudioEncoderConfig.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.video.internal.encoder.AudioEncoderConfig.Builder

Overview

The builder of the config.

Summary

Methods
public AudioEncoderConfigbuild()

Builds the config instance.

public abstract AudioEncoderConfig.BuildersetBitrate(int bitrate)

Sets the bitrate.

public abstract AudioEncoderConfig.BuildersetChannelCount(int channelCount)

Sets the channel count.

public abstract AudioEncoderConfig.BuildersetMimeType(java.lang.String mimeType)

Sets the mime type.

public abstract AudioEncoderConfig.BuildersetProfile(int profile)

Sets (optional) profile for the mime type specified by AudioEncoderConfig.Builder.setMimeType(String).

public abstract AudioEncoderConfig.BuildersetSampleRate(int sampleRate)

Sets the sample rate.

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

Methods

public abstract AudioEncoderConfig.Builder setMimeType(java.lang.String mimeType)

Sets the mime type.

If the mime type is set to AAC, i.e. , then a profile must be set with AudioEncoderConfig.Builder.setProfile(int). If a profile isn't set or is set to EncoderConfig.CODEC_PROFILE_NONE, an IllegalArgumentException will be thrown by AudioEncoderConfig.Builder.build().

public abstract AudioEncoderConfig.Builder setProfile(int profile)

Sets (optional) profile for the mime type specified by AudioEncoderConfig.Builder.setMimeType(String).

public abstract AudioEncoderConfig.Builder setBitrate(int bitrate)

Sets the bitrate.

public abstract AudioEncoderConfig.Builder setSampleRate(int sampleRate)

Sets the sample rate.

public abstract AudioEncoderConfig.Builder setChannelCount(int channelCount)

Sets the channel count.

public AudioEncoderConfig build()

Builds the config instance.