Interface IngressMediaStream
public interface IngressMediaStream
Represents an ingress media stream, encapsulating its identifiers, ingress source type, offered SDP, negotiated SDP,
and metadata.
Implementations of this interface provide access to the ingress media stream's properties, which are used to configure and manage the stream.
Notes:
-
The value of
ingressSourceTypemust be an instance of theIngressSourceTypeenumeration. -
In a
CreateMediaRequest, theofferedSDPcontains aConnectionobject (set withmediaSourceIpandmediaSourcePort), and thenegotiatedSDPdoes not include aConnectionobject. -
In a
CreateMediaResponse, thenegotiatedSDPcontains aConnectionobject (set withmediaReceiverIpandmediaReceiverPort), while theofferedSDPdoes not include aConnectionobject.
Example usage:
IngressMediaStream ingressMediaStream = new IngressMediaStreamImpl.Builder()
.identifiers(identifiers)
.ingressSourceType(IngressSourceType.RTP) // can be any value from the enuy
.offeredSDP(offeredSdp) // request: includes Connection; response: null or no Connection set
.negotiatedSDP(negotiatedSdp) // request: null or no Connection set; response: includes Connection
.metadata(streamMetadata)
.build();
Construct the OfferedSDP or NegotiatedSDP accordingly for your application context.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableIngressMediaStreaminstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the identifiers associated with the ingress media stream.Gets the type of ingress stream.Gets the metadata associated with the ingress media stream.Gets the negotiated SDP for the ingress media stream.Gets the offered SDP for the ingress media stream.voidsetIdentifiers(Identifiers identifiers) Sets the identifiers associated with the ingress media stream.voidsetIngressSourceType(IngressSourceType ingressSourceType) Sets the type of ingress stream.voidsetMetadata(StreamMetadata metadata) Sets the metadata associated with the ingress media stream.voidsetNegotiatedSDP(NegotiatedSDP negotiatedSDP) Sets the negotiated SDP for the ingress media stream.voidsetOfferedSDP(OfferedSDP offeredSDP) Sets the offered SDP for the ingress media stream.
-
Method Details
-
getIdentifiers
Identifiers getIdentifiers()Gets the identifiers associated with the ingress media stream.- Returns:
- the identifiers.
-
setIdentifiers
Sets the identifiers associated with the ingress media stream.- Parameters:
identifiers- the identifiers to set.
-
getIngressSourceType
IngressSourceType getIngressSourceType()Gets the type of ingress stream.- Returns:
- the ingress source type.
-
setIngressSourceType
Sets the type of ingress stream.- Parameters:
ingressSourceType- the ingress source type to set.
-
getOfferedSDP
OfferedSDP getOfferedSDP()Gets the offered SDP for the ingress media stream.- Returns:
- the offered SDP.
-
setOfferedSDP
Sets the offered SDP for the ingress media stream.- Parameters:
offeredSDP- the offered SDP to set.
-
getNegotiatedSDP
NegotiatedSDP getNegotiatedSDP()Gets the negotiated SDP for the ingress media stream.- Returns:
- the negotiated SDP, or null if not applicable.
-
setNegotiatedSDP
Sets the negotiated SDP for the ingress media stream.- Parameters:
negotiatedSDP- the negotiated SDP to set.
-
getMetadata
StreamMetadata getMetadata()Gets the metadata associated with the ingress media stream.- Returns:
- the metadata.
-
setMetadata
Sets the metadata associated with the ingress media stream.- Parameters:
metadata- the metadata to set.
-