RemoteAudio

The RemoteAudio model allows the local participant to locally mute and unmute remote participants.

This model is supported only in SDK 3.7 and later.

Available in the package com.voxeet.sdk.services.audio.RemoteAudio.

Methods

setOutputVolume

setOutputVolume(volume: float): void
Sets the conference volume for the local participant. The method sets the volume of all remote participants to a preferred value between 0 and 1. Providing an unsupported volume results in constraining volume to a either 0 or 1. This method is supported in SDK 3.11 and later.

Parameters

NameTypeDescription
volumefloatThe preferred volume level between 0 (no audio) and 1 (full volume).

setVolume

setVolume(@NonNull participant: Participant, volume: float): void

Sets the volume of a selected participant in non-Dolby Voice conferences to a preferred value between 0 and 1. Providing an unsupported number results in constraining the volume to either 0 or 1. Using the method for a selected participant after calling setOutputVolume overwrites the participant's volume. This method is supported in SDK 3.11 and later.

Parameters

NameTypeDescription
participantParticipantnon null The selected remote participant.
volumefloatThe preferred volume level between 0 (no audio) and 1 (full volume).

setVolume

setVolume(@NonNull mediaStream: MediaStream, volume: float): void

Sets the volume of a selected media stream in non-Dolby Voice conferences to a preferred value between 0 and 1. Providing an unsupported number results in constraining volume to a either 0 or 1. Using the method for a selected media stream after calling setOutputVolume or other setVolume methods overwrites the media stream's volume. This method is supported in SDK 3.11 and later.

Parameters

NameTypeDescription
mediaStreamMediaStreamnon null The selected media stream.
volumefloatThe preferred volume level between 0 (no audio) and 1 (full volume).

setVolume

setVolume(@NonNull audioTrack: AudioTrack, volume: float): void

Sets the volume of a selected audio track in non-Dolby Voice conferences to a preferred value between 0 and 1. Providing an unsupported number results in constraining volume to a either 0 or 1. Using the method for a selected audio track after calling setOutputVolume or other setVolume methods overwrites the audio track's volume. This method is supported in SDK 3.11 and later.

Parameters

NameTypeDescription
audioTrackAudioTracknon null The selected audio track.
volumefloatThe preferred volume level between 0 (no audio) and 1 (full volume).

start

start(@NonNull participant: Participant): Promise

Allows the local participant to start receiving audio from a specific remote participant. The start method does not impact audio transmission between remote participants and a conference and does not allow the local participant to force sending remote participants’ streams to the conference or to the local participant. The method requires a few seconds to become effective.

In Dolby Voice conferences and in the case of mixed listeners, the method works as mute, so it locally starts playing audio from a remote participant.

Parameters

NameTypeDescription
participantParticipantnon null The selected remote participant who is locally muted through the stop method.

Returns: @NonNull Promise


stop

stop(@NonNull participant: Participant): Promise

Allows the local participant to locally mute specific remote participants. This method does not impact audio transmission between remote participants and a conference and does not allow the local participant to stop sending remote participants’ streams to the conference. The method requires up to a few seconds to become effective.

In Dolby Voice conferences and in the case of mixed listeners, the method works as mute, so it locally stops playing audio while the audio stream is still received.

Parameters

NameTypeDescription
participantParticipantnon null The selected remote participant who should be locally muted.

Returns: @NonNull Promise