-
Notifications
You must be signed in to change notification settings - Fork 2
WebsocketEndpoint
Kenan Genjac edited this page Feb 18, 2025
·
1 revision
extends Endpoint
Returns the value of the identifier on this endpoint represented by the participant's identifier.
none
-
String- Identifier of the participant on this endpoint.
@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
Participant participant = participantJoinedEvent.getParticipant();
Endpoint endpoint = participant.getEndpoint();
Log.d("WebRTC", "Identifier of the participant on this endpoint: " + endpoint.identifier());
}Returns the value of the display identifier on this endpoint represented by the participant's identifier.
none
-
String- Display identifier of the participant on this endpoint.
@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
Participant participant = participantJoinedEvent.getParticipant();
Endpoint endpoint = participant.getEndpoint();
Log.d("WebRTC", "Display identifier of the participant on this endpoint: " + endpoint.displayIdentifier());
}Getter for the websocketEndpointConfigId field.
none
-
String- Value of thewebsocketEndpointConfigIdfield representing the ID of your websocket endpoint configuration.
@Override
public void onParticipantJoined(ParticipantJoinedEvent participantJoinedEvent) {
Participant participant = participantJoinedEvent.getParticipant();
Endpoint endpoint = participant.getEndpoint();
if (endpoint instanceof WebsocketEndpoint wsEndpoint) {
Log.d("WebRTC", "Websocket endpoint config ID: " + wsEndpoint.getWebsocketEndpointConfigId());
}
}