Interface OfferedSDP


public interface OfferedSDP
Represents an offered SDP (Session Description Protocol) media description, encapsulating its media type, media direction, connection details, and offered codecs.

Implementations of this interface provide access to the offered SDP media description's properties, which are used to configure and manage the media stream.

Example usage:


 OfferedSDP offeredSDP = new OfferedSDPImpl.Builder()
     .mediaType(MediaType.AUDIO)
     .mediaDirection(MediaDirection.SENDONLY)
     .connection(connection)
     .offeredCodecs(List.of(codec))
     .build();
 

Notes:

  • The value for mediaType must be an instance of the MediaType enumeration.
  • The value for mediaDirection must be an instance of the MediaDirection enumeration.
  • The connection object in an offered SDP should include the appropriate source IP and port, typically mediaSourceIp and mediaSourcePort as used in a CreateMediaRequest.
Replace each variable with the appropriate value or object for your application.

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

    • getMediaType

      MediaType getMediaType()
      Gets the media type of the offered SDP media description.
      Returns:
      the media type.
    • setMediaType

      void setMediaType(MediaType mediaType)
      Sets the media type of the offered SDP media description.
      Parameters:
      mediaType - the media type to set.
    • getMediaDirection

      MediaDirection getMediaDirection()
      Gets the media direction of the offered SDP media description.
      Returns:
      the media direction.
    • setMediaDirection

      void setMediaDirection(MediaDirection mediaDirection)
      Sets the media direction of the offered SDP media description.
      Parameters:
      mediaDirection - the media direction to set.
    • getConnection

      Connection getConnection()
      Gets the connection details for the offered SDP media description.
      Returns:
      the connection details.
    • setConnection

      void setConnection(Connection connection)
      Sets the connection details for the offered SDP media description.
      Parameters:
      connection - the connection details to set.
    • getOfferedCodecs

      List<Codec> getOfferedCodecs()
      Gets the list of codecs offered by the SDP media description.
      Returns:
      the list of offered codecs.
    • setOfferedCodecs

      void setOfferedCodecs(List<Codec> offeredCodecs)
      Sets the list of codecs offered by the SDP media description.
      Parameters:
      offeredCodecs - the list of offered codecs to set.