Package com.twilio.video
Class DefaultAudioDevice
- java.lang.Object
-
- com.twilio.video.DefaultAudioDevice
-
- All Implemented Interfaces:
AudioDevice,AudioDeviceCapturer,AudioDeviceRenderer
public final class DefaultAudioDevice extends java.lang.Object implements AudioDevice
By default, the Video SDK usesDefaultAudioDeviceto capture and render audio. The Video SDK performs acoustic echo cancellation(AEC) and noise suppression(NS) using device hardware by default.
-
-
Constructor Summary
Constructors Constructor Description DefaultAudioDevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioFormatgetCapturerFormat()This method is a no-op that returnsnull.AudioFormatgetRendererFormat()This method is a no-op that returnsnull.booleanonInitCapturer()This method is a no-op that returnsfalse.booleanonInitRenderer()This method is a no-op that returnsfalse.booleanonStartCapturing(AudioDeviceContext audioDeviceContext)This method is a no-op that returnsfalse.booleanonStartRendering(AudioDeviceContext audioDeviceContext)This method is a no-op that returnsfalse.booleanonStopCapturing()This method is a no-op that returnsfalse.booleanonStopRendering()This method is a no-op that returnsfalse.
-
-
-
Method Detail
-
getCapturerFormat
@Nullable public AudioFormat getCapturerFormat()
This method is a no-op that returnsnull.- Specified by:
getCapturerFormatin interfaceAudioDeviceCapturer- Returns:
AudioFormat
-
onInitCapturer
public boolean onInitCapturer()
This method is a no-op that returnsfalse.- Specified by:
onInitCapturerin interfaceAudioDeviceCapturer- Returns:
- A boolean value to indicate if initialization was successful.
-
onStartCapturing
public boolean onStartCapturing(@NonNull AudioDeviceContext audioDeviceContext)This method is a no-op that returnsfalse.- Specified by:
onStartCapturingin interfaceAudioDeviceCapturer- Returns:
- A boolean value that indicates if capturing has started or not.
-
onStopCapturing
public boolean onStopCapturing()
This method is a no-op that returnsfalse.- Specified by:
onStopCapturingin interfaceAudioDeviceCapturer- Returns:
- A boolean value that indicates if capturing has stopped or not.
-
getRendererFormat
@Nullable public AudioFormat getRendererFormat()
This method is a no-op that returnsnull.- Specified by:
getRendererFormatin interfaceAudioDeviceRenderer- Returns:
AudioFormat
-
onInitRenderer
public boolean onInitRenderer()
This method is a no-op that returnsfalse.- Specified by:
onInitRendererin interfaceAudioDeviceRenderer- Returns:
- A boolean value to indicate if initialization was successful.
-
onStartRendering
public boolean onStartRendering(@NonNull AudioDeviceContext audioDeviceContext)This method is a no-op that returnsfalse.- Specified by:
onStartRenderingin interfaceAudioDeviceRenderer- Returns:
- A boolean value that indicates if rendering has started or not.
-
onStopRendering
public boolean onStopRendering()
This method is a no-op that returnsfalse.- Specified by:
onStopRenderingin interfaceAudioDeviceRenderer- Returns:
- A boolean value that indicates if rendering has stopped or not.
-
-