Interface EgressMediaStream.Builder
- Enclosing interface:
- EgressMediaStream
public static interface EgressMediaStream.Builder
Builder interface for creating immutable
EgressMediaStream instances.-
Method Summary
Modifier and TypeMethodDescriptionaddOutputCodec(Codec codec) Adds an output codec to the list of output codecs.build()Builds theEgressMediaStreaminstance.connection(Connection connection) Sets the connection details for the egress media stream.egressSourceType(EgressSourceType egressSourceType) Sets the egress source type for the egress media stream.identifiers(Identifiers identifiers) Sets the identifiers associated with the egress media stream.metadata(StreamMetadata metadata) Sets the metadata associated with the egress media stream.outputCodecs(List<Codec> outputCodecs) Sets the list of output codecs for the egress media stream.
-
Method Details
-
identifiers
Sets the identifiers associated with the egress media stream.- Parameters:
identifiers- the identifiers.- Returns:
- this Builder instance.
-
connection
Sets the connection details for the egress media stream.- Parameters:
connection- the connection details.- Returns:
- this Builder instance.
-
egressSourceType
Sets the egress source type for the egress media stream.- Parameters:
egressSourceType- the egress source type.- Returns:
- this Builder instance.
-
outputCodecs
Sets the list of output codecs for the egress media stream.- Parameters:
outputCodecs- the list of output codecs.- Returns:
- this Builder instance.
-
addOutputCodec
Adds an output codec to the list of output codecs.- Parameters:
codec- the output codec.- Returns:
- this Builder instance.
-
metadata
Sets the metadata associated with the egress media stream.- Parameters:
metadata- the metadata.- Returns:
- this Builder instance.
-
build
EgressMediaStream build()Builds theEgressMediaStreaminstance.- Returns:
- an immutable
EgressMediaStreaminstance.
-