Skip to content

ParticipantMedia

Ajša Terko edited this page Aug 7, 2025 · 4 revisions



getAudio()

Description

Getter for the audio field.

Arguments

  • none

Returns

  • Audio - The value of the audio field, which represents the participant's audio information.

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());
}



getVideo()

Description

Getter for the video field.

Arguments

  • none

Returns

  • Video - The value of the video field, which represents the participant's video information.

Example

@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
    Participant participant = participantJoinedEvent.getParticipant();
    ParticipantMedia participantMedia = participant.getParticipantMedia();
    Log.d("WebRTC", "Participant blinded: " + participantMedia.getVideo().getBlind());
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally