Interface MediaSessionDetails
public interface MediaSessionDetails
Represents the details of a media session, including ingress and egress media streams, pipeline description, and API version.
Implementations of this interface provide access to the media session details, which are used to manage and monitor media sessions.
Example usage:
MediaSessionDetails mediaSessionDetails = new MediaSessionDetailsImpl.Builder()
.addIngressMediaStream(new IngressMediaStreamImpl.Builder()
.ingressSourceType(IngressSourceType.RTP)
.build())
.addEgressMediaStream(new EgressMediaStreamImpl.Builder()
.connection(connection)
.build())
.pipelineDescription(pipelineDescription)
.apiVersion(apiVersion)
.build();
Notes:
- The value passed to
ingressSourceTypemust be an instance of theIngressSourceTypeenumeration. - The
connectionobject for egress streams should be constructed with onlydestinationIpanddestinationPort.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableMediaSessionDetailsinstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the API version used for the media session.Gets the list of egress media streams associated with the media session.Gets the list of ingress media streams associated with the media session.Gets the pipeline description for the media session.voidsetApiVersion(String apiVersion) Sets the API version used for the media session.voidsetEgressMediaStreams(List<EgressMediaStream> egressMediaStreams) Sets the list of egress media streams associated with the media session.voidsetIngressMediaStreams(List<IngressMediaStream> ingressMediaStreams) Sets the list of ingress media streams associated with the media session.voidsetPipelineDescription(String pipelineDescription) Sets the pipeline description for the media session.
-
Method Details
-
getIngressMediaStreams
List<IngressMediaStream> getIngressMediaStreams()Gets the list of ingress media streams associated with the media session.- Returns:
- the list of ingress media streams.
-
setIngressMediaStreams
Sets the list of ingress media streams associated with the media session.- Parameters:
ingressMediaStreams- the list of ingress media streams to set.
-
getEgressMediaStreams
List<EgressMediaStream> getEgressMediaStreams()Gets the list of egress media streams associated with the media session.- Returns:
- the list of egress media streams.
-
setEgressMediaStreams
Sets the list of egress media streams associated with the media session.- Parameters:
egressMediaStreams- the list of egress media streams to set.
-
getPipelineDescription
String getPipelineDescription()Gets the pipeline description for the media session.- Returns:
- the pipeline description.
-
setPipelineDescription
Sets the pipeline description for the media session.- Parameters:
pipelineDescription- the pipeline description to set.
-
getApiVersion
String getApiVersion()Gets the API version used for the media session.- Returns:
- the API version.
-
setApiVersion
Sets the API version used for the media session.- Parameters:
apiVersion- the API version to set.
-