AudioConfig


class AudioConfig


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

Summary

Constants

const AudioConfig

The audio configuration with audio disabled.

Public functions

java-static AudioConfig
@RequiresPermission(value = Manifest.permission.RECORD_AUDIO)
create(enableAudio: Boolean)

Creates a default AudioConfig with the given audio enabled state.

Boolean

Get the audio enabled state.

Constants

AUDIO_DISABLED

Added in 1.3.0
const val AUDIO_DISABLEDAudioConfig

The audio configuration with audio disabled.

Public functions

create

Added in 1.3.0
@RequiresPermission(value = Manifest.permission.RECORD_AUDIO)
java-static fun create(enableAudio: Boolean): AudioConfig

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
fun getAudioEnabled(): Boolean

Get the audio enabled state.