AudioRenderer
Class that represents an audio renderer.
An instance should be created via the RendererManager.createAudioRenderer method.
Methods
clear
clear(): void
Stops playing audio and releases all resources.
Returns
type:
void
setVolume
setVolume(value: number
): this
Sets the audio volume for the
Setting this value has no effect in iOS.
Parameters
value:
number
Audio volume. The value should fall between 0 and 1, where 0 is effectively muted and 1 is the loudest possible value.
Returns
type:
this
updateSpeaker
updateSpeaker(speakerId: string
): Promise<void>
Changes the audio renderer output to the specified device id.
Parameters
speakerId:
string
Output device id
Returns
type:
Promise<void>
Props
currentSpeakerId
currentSpeakerId: null | string
Current speaker device id.