Interface Identifiers
public interface Identifiers
Represents a set of identifiers associated with a media stream or participant.
Implementations of this interface provide access to the stream or participant identifiers, which are used to identify and manage media streams and participants in a session.
Example usage:
Identifiers identifiers = new IdentifiersImpl.Builder()
.streamId(streamId)
.participantId(participantId)
.build();
Replace each variable (e.g., streamId) with the desired value as appropriate for your request.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableIdentifiersinstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the participant or user associated with the stream.Gets the unique stream identifier.voidsetParticipantId(String participantId) Sets the participant or user associated with the stream.voidsetStreamId(String streamId) Sets the unique stream identifier.
-
Method Details
-
getStreamId
String getStreamId()Gets the unique stream identifier.In
IngressMediaStream, thestreamIdis used to check that the combination ofcall_idandstream_idis unique. InEgressMediaStream, thestreamIdis used to set the value in the outgoing RTP packet.- Returns:
- the stream ID, or null if not applicable.
-
setStreamId
Sets the unique stream identifier.- Parameters:
streamId- the stream ID to set.
-
getParticipantId
String getParticipantId()Gets the participant or user associated with the stream.The
participantIdis used only inEgressMediaStream.- Returns:
- the participant ID, or null if not applicable.
-
setParticipantId
Sets the participant or user associated with the stream.- Parameters:
participantId- the participant ID to set.
-