Class DefaultAudioDevice

java.lang.Object
com.twilio.video.DefaultAudioDevice
All Implemented Interfaces:
AudioDevice, AudioDeviceCapturer, AudioDeviceRenderer

public final class DefaultAudioDevice extends Object implements AudioDevice
By default, the Video SDK uses DefaultAudioDevice to capture and render audio. The Video SDK performs acoustic echo cancellation(AEC) and noise suppression(NS) using device hardware by default.
  • Constructor Details

    • DefaultAudioDevice

      public DefaultAudioDevice()
  • Method Details

    • getCapturerFormat

      @Nullable public AudioFormat getCapturerFormat()
      This method is a no-op that returns null.
      Specified by:
      getCapturerFormat in interface AudioDeviceCapturer
      Returns:
      AudioFormat
    • onInitCapturer

      public boolean onInitCapturer()
      This method is a no-op that returns false.
      Specified by:
      onInitCapturer in interface AudioDeviceCapturer
      Returns:
      A boolean value to indicate if initialization was successful.
    • onStartCapturing

      public boolean onStartCapturing(@NonNull AudioDeviceContext audioDeviceContext)
      This method is a no-op that returns false.
      Specified by:
      onStartCapturing in interface AudioDeviceCapturer
      Returns:
      A boolean value that indicates if capturing has started or not.
    • onStopCapturing

      public boolean onStopCapturing()
      This method is a no-op that returns false.
      Specified by:
      onStopCapturing in interface AudioDeviceCapturer
      Returns:
      A boolean value that indicates if capturing has stopped or not.
    • getRendererFormat

      @Nullable public AudioFormat getRendererFormat()
      This method is a no-op that returns null.
      Specified by:
      getRendererFormat in interface AudioDeviceRenderer
      Returns:
      AudioFormat
    • onInitRenderer

      public boolean onInitRenderer()
      This method is a no-op that returns false.
      Specified by:
      onInitRenderer in interface AudioDeviceRenderer
      Returns:
      A boolean value to indicate if initialization was successful.
    • onStartRendering

      public boolean onStartRendering(@NonNull AudioDeviceContext audioDeviceContext)
      This method is a no-op that returns false.
      Specified by:
      onStartRendering in interface AudioDeviceRenderer
      Returns:
      A boolean value that indicates if rendering has started or not.
    • onStopRendering

      public boolean onStopRendering()
      This method is a no-op that returns false.
      Specified by:
      onStopRendering in interface AudioDeviceRenderer
      Returns:
      A boolean value that indicates if rendering has stopped or not.