Skip to content

ParticipantMedia

Ajša Terko edited this page Apr 26, 2023 · 2 revisions



getAudio()

Description

Returns the value of the participant's audio information as an Audio object.

Arguments

  • none

Returns

  • Audio - Represents audio information about the participant.

Example

@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
    Participant participant = participantJoinedEvent.getParticipant();
    ParticipantMedia participantMedia = participant.getParticipantMedia();
    Log.d("WebRTC", "Participant muted: " + participantMedia.getAudio().getMuted());
    Log.d("WebRTC", "Participant deafened: " + participantMedia.getAudio().getDeaf());
    Log.d("WebRTC", "Participant talking: " + participantMedia.getAudio().getTalking());
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally