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 usesDefaultAudioDevice
to 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 AudioFormat
getCapturerFormat()
This method is a no-op that returnsnull
.AudioFormat
getRendererFormat()
This method is a no-op that returnsnull
.boolean
onInitCapturer()
This method is a no-op that returnsfalse
.boolean
onInitRenderer()
This method is a no-op that returnsfalse
.boolean
onStartCapturing(AudioDeviceContext audioDeviceContext)
This method is a no-op that returnsfalse
.boolean
onStartRendering(AudioDeviceContext audioDeviceContext)
This method is a no-op that returnsfalse
.boolean
onStopCapturing()
This method is a no-op that returnsfalse
.boolean
onStopRendering()
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:
getCapturerFormat
in interfaceAudioDeviceCapturer
- Returns:
AudioFormat
-
onInitCapturer
public boolean onInitCapturer()
This method is a no-op that returnsfalse
.- Specified by:
onInitCapturer
in 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:
onStartCapturing
in 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:
onStopCapturing
in 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:
getRendererFormat
in interfaceAudioDeviceRenderer
- Returns:
AudioFormat
-
onInitRenderer
public boolean onInitRenderer()
This method is a no-op that returnsfalse
.- Specified by:
onInitRenderer
in 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:
onStartRendering
in 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:
onStopRendering
in interfaceAudioDeviceRenderer
- Returns:
- A boolean value that indicates if rendering has stopped or not.
-
-