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 egressSourceType must be an instance of the EgressSourceType enumeration.
  • For egress streams, the associated Connection instance should be constructed with only destinationIp and destinationPort.

Replace each variable with its appropriate value or object.

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Method Details

    • getIdentifiers

      Identifiers getIdentifiers()
      Gets the identifiers associated with the egress media stream.
      Returns:
      the identifiers, or null if not applicable.
    • setIdentifiers

      void setIdentifiers(Identifiers identifiers)
      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

      void setEgressSourceType(EgressSourceType egressSourceType)
      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

      void setConnection(Connection connection)
      Sets the connection details for the egress media stream.
      Parameters:
      connection - the connection to set.
    • getOutputCodecs

      List<Codec> getOutputCodecs()
      Gets the list of output codecs for the egress media stream.
      Returns:
      the list of output codecs.
    • setOutputCodecs

      void setOutputCodecs(List<Codec> outputCodecs)
      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

      void setMetadata(StreamMetadata metadata)
      Sets the metadata associated with the egress media stream.
      Parameters:
      metadata - the metadata to set.