public interface

AudioSource.AudioSourceCallback

 androidx.camera.video.internal.AudioSource.AudioSourceCallback

Overview

The callback for receiving the audio source status.

Summary

Methods
public voidonError(java.lang.Throwable t)

The method called when the audio source encountered errors.

public voidonSilenced(boolean silenced)

The method called when the audio source is silenced.

Methods

public void onSilenced(boolean silenced)

The method called when the audio source is silenced.

The audio source is silenced when the audio record is occupied by privilege application. When it happens, the audio source will keep providing audio data with silence sample.

public void onError(java.lang.Throwable t)

The method called when the audio source encountered errors.