Interface EgressMediaStream
public interface EgressMediaStream
Represents an egress media stream, encapsulating its identifiers, connection details, output codecs, and metadata.
Implementations of this interface provide access to the egress media stream's properties, which are used to configure and manage the stream.
To create a new instance of EgressMediaStream, use the Builder pattern: *
EgressMediaStream egressMediaStream = new EgressMediaStreamImpl.Builder()
.identifiers(identifiers)
.egressSourceType(EgressSourceType.UDP) // can be any EgressSourceType
.connection(connection)
.outputCodecs(List.of(codec))
.metadata(streamMetadata)
.build();
Notes:
-
The value of
egressSourceTypemust be an instance of theEgressSourceTypeenumeration. -
For egress streams, the associated
Connectioninstance should be constructed with onlydestinationIpanddestinationPort.
Replace each variable with its appropriate value or object.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableEgressMediaStreaminstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the connection details for the egress media stream.Gets the egress source type for the egress media stream.Gets the identifiers associated with the egress media stream.Gets the metadata associated with the egress media stream.Gets the list of output codecs for the egress media stream.voidsetConnection(Connection connection) Sets the connection details for the egress media stream.voidsetEgressSourceType(EgressSourceType egressSourceType) Sets the egress source type for the egress media stream.voidsetIdentifiers(Identifiers identifiers) Sets the identifiers associated with the egress media stream.voidsetMetadata(StreamMetadata metadata) Sets the metadata associated with the egress media stream.voidsetOutputCodecs(List<Codec> outputCodecs) Sets the list of output codecs for the egress media stream.
-
Method Details
-
getIdentifiers
Identifiers getIdentifiers()Gets the identifiers associated with the egress media stream.- Returns:
- the identifiers, or null if not applicable.
-
setIdentifiers
Sets the identifiers associated with the egress media stream.- Parameters:
identifiers- the identifiers to set.
-
getEgressSourceType
EgressSourceType getEgressSourceType()Gets the egress source type for the egress media stream.- Returns:
- the egress source type, or null if not applicable.
-
setEgressSourceType
Sets the egress source type for the egress media stream.- Parameters:
egressSourceType- the egress source type to set.
-
getConnection
Connection getConnection()Gets the connection details for the egress media stream.- Returns:
- the connection details.
-
setConnection
Sets the connection details for the egress media stream.- Parameters:
connection- the connection to set.
-
getOutputCodecs
Gets the list of output codecs for the egress media stream.- Returns:
- the list of output codecs.
-
setOutputCodecs
Sets the list of output codecs for the egress media stream.- Parameters:
outputCodecs- the list of output codecs to set.
-
getMetadata
StreamMetadata getMetadata()Gets the metadata associated with the egress media stream.- Returns:
- the metadata, or null if not applicable.
-
setMetadata
Sets the metadata associated with the egress media stream.- Parameters:
metadata- the metadata to set.
-