Package com.twilio.voice
Interface AudioDeviceRenderer
- All Known Subinterfaces:
AudioDevice
- All Known Implementing Classes:
DefaultAudioDevice
public interface AudioDeviceRenderer
AudioDeviceRenderer interface provides the mechanism to define a custom audio device renderer.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the format of the audio that will be rendered.booleanRaised when the Renderer is ready to be initialized.booleanonStartRendering(AudioDeviceContext audioDeviceContext) Raised when the renderer is ready to render.booleanRaised when the capturer stops rendering.
-
Method Details
-
getRendererFormat
Returns the format of the audio that will be rendered. Returning `null` indicates rendering is not supported.- Returns:
AudioFormat
-
onInitRenderer
boolean onInitRenderer()Raised when the Renderer is ready to be initialized. This method is called beforeonStartRendering(AudioDeviceContext).- Returns:
- A boolean value to indicate if initialization was successful.
-
onStartRendering
Raised when the renderer is ready to render.- Parameters:
audioDeviceContext-- Returns:
- A boolean value that indicates if rendering has started or not.
-
onStopRendering
boolean onStopRendering()Raised when the capturer stops rendering.- Returns:
- A boolean value that indicates if rendering has stopped or not.
-