AudioConfig


public class AudioConfig


A class providing configuration for audio settings in the video recording.

Summary

Constants

static final @NonNull AudioConfig

The audio configuration with audio disabled.

Public methods

static @NonNull AudioConfig
@RequiresPermission(value = Manifest.permission.RECORD_AUDIO)
create(boolean enableAudio)

Creates a default AudioConfig with the given audio enabled state.

boolean

Get the audio enabled state.

Constants

AUDIO_DISABLED

Added in 1.3.0
public static final @NonNull AudioConfig AUDIO_DISABLED

The audio configuration with audio disabled.

Public methods

create

Added in 1.3.0
@RequiresPermission(value = Manifest.permission.RECORD_AUDIO)
public static @NonNull AudioConfig create(boolean enableAudio)

Creates a default AudioConfig with the given audio enabled state.

The RECORD_AUDIO permission is required to enable audio in video recording; for the use cases where audio is always disabled, please use AUDIO_DISABLED instead, which has no permission requirements.

getAudioEnabled

Added in 1.3.0
public boolean getAudioEnabled()

Get the audio enabled state.