Package 

Interface AudioDeviceCapturer


  • 
    public interface AudioDeviceCapturer
    
                        

    AudioDeviceCapturer interface provides the mechanism to define a custom audio device capturer.

    • Method Summary

      Modifier and Type Method Description
      abstract AudioFormat getCapturerFormat() Returns the format of the audio that will be captured.
      abstract boolean onInitCapturer() Raised when the capturer is ready to be initialized.
      abstract boolean onStartCapturing(@NonNull() AudioDeviceContext audioDeviceContext) Raised when the capturer is ready to capture.
      abstract boolean onStopCapturing() Raised when the capturer stops capturing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCapturerFormat

        @Nullable() abstract AudioFormat getCapturerFormat()

        Returns the format of the audio that will be captured. Returning `null` indicates capturingis not supported.

      • onInitCapturer

         abstract boolean onInitCapturer()

        Raised when the capturer is ready to be initialized. This method is called before .

      • onStopCapturing

         abstract boolean onStopCapturing()

        Raised when the capturer stops capturing. This method is called some time after when audio capturing is no longer needed by the mediaengine.