fm.liveswitch.sdp.MediaDescription Class Reference

An SDP media description element. More...

Public Member Functions

void addBandwidth (fm.liveswitch.sdp.Bandwidth bandwidth)
 Adds a proposed bandwidth. More...
 
void addMediaAttribute (fm.liveswitch.sdp.Attribute attribute)
 Adds a media-level attribute. More...
 
fm.liveswitch.sdp.Bandwidth[] getBandwidths ()
 Gets the array of proposed bandwidths to be used by the media. More...
 
boolean getBundleOnly ()
 Gets a value indicating whether this media description has been marked as bundle-only. More...
 
fm.liveswitch.sdp.Attribute[] getCandidateAttributes ()
 Obtains Ice Candidate attributes associated with this media description. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getCcmFirFeedbackAttribute (int payloadType)
 Gets the RTCP "ccm fir" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getCcmLrrFeedbackAttribute (int payloadType)
 Gets the RTCP "ccm lrr" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.ConnectionData getConnectionData ()
 Gets media-level connection data. More...
 
fm.liveswitch.sdp.ContentAttribute getContentAttribute ()
 Obtains the content attribute. More...
 
fm.liveswitch.sdp.CryptoAttribute[] getCryptoAttributes ()
 Gets CryptoAttributes associated with this MediaDescription. More...
 
fm.liveswitch.sdp.EncryptionKey getEncryptionKey ()
 Gets the media-level encryption key. More...
 
fm.liveswitch.sdp.ice.FingerprintAttribute getFingerprintAttribute ()
 Gets the Fingerprint Attribute from this MediaDescription. More...
 
fm.liveswitch.sdp.FormatParametersAttribute getFormatParametersAttribute (int payloadType)
 Gets the format parameters attribute for the given payload type. More...
 
String getFormatParameterValue (int payloadType, String formatParameterName)
 Sets a format parameter value. More...
 
fm.liveswitch.sdp.Attribute[] getIceOptionAttributes ()
 Obtains Ice Options attributes associated with this media description. More...
 
fm.liveswitch.sdp.ice.PasswordAttribute getIcePasswordAttribute ()
 Gets the IcePasswordAttribute associated with this MediaDescription. More...
 
fm.liveswitch.sdp.ice.UfragAttribute getIceUfragAttribute ()
 Gets the IceUfragAttribute associated with this MediaDescription. More...
 
fm.liveswitch.sdp.Attribute[] getIdenticalCategoryAttributes ()
 Gets the attributes with Identical Multiplexing Category present in this description. More...
 
boolean getIsApplication ()
 Gets whether this media description represents an application stream (media type == "application"). More...
 
boolean getIsAudio ()
 Gets whether this media description represents an audio stream (media type == "audio"). More...
 
boolean getIsMessage ()
 Gets whether this media description represents a message stream (media type == "message"). More...
 
boolean getIsMuted ()
 Gets a value indicating whether this stream is muted. More...
 
boolean getIsText ()
 Gets whether this media description represents a text stream (media type == "text"). More...
 
boolean getIsVideo ()
 Gets whether this media description represents a video stream (media type == "video"). More...
 
fm.liveswitch.sdp.MaxPacketTimeAttribute getMaxPacketTimeAttribute ()
 Obtains the maximum packet time attribute. More...
 
fm.liveswitch.sdp.Media getMedia ()
 Gets the media name and transport address. More...
 
fm.liveswitch.sdp.Attribute[] getMediaAttributes ()
 Gets the array of media-level attributes. More...
 
fm.liveswitch.sdp.MediaStreamIdAttribute getMediaStreamIdentifierAttribute ()
 Obtains the media stream identifier attribute. More...
 
String getMediaTitle ()
 Gets the media title. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getNackFeedbackAttribute (int payloadType)
 Gets the RTCP "nack" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getNackPliFeedbackAttribute (int payloadType)
 Gets the RTCP "nack pli" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getNackRpsiFeedbackAttribute (int payloadType)
 Gets the RTCP "nack rpsi" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getNackSliFeedbackAttribute (int payloadType)
 Gets the RTCP "nack sli" feedback attribute for the given payload type. More...
 
fm.liveswitch.sdp.PacketTimeAttribute getPacketTimeAttribute ()
 Obtains the packet time attribute. More...
 
fm.liveswitch.sdp.rtp.MapAttribute[] getPreferredRtpMapAttributes ()
 Obtains the RTP map attributes in preference order. More...
 
fm.liveswitch.sdp.QualityAttribute getQualityAttribute ()
 Gets the QualityAttribute associated with this MediaDescription. More...
 
fm.liveswitch.sdp.rtp.RidAttribute getRidAttribute (String rid)
 Obtains an RID attribute by its RID. More...
 
fm.liveswitch.sdp.rtp.RidAttribute[] getRidAttributes ()
 Obtains the RID attributes. More...
 
fm.liveswitch.sdp.rtp.RidAttribute[] getRidAttributes (String direction)
 Obtains the RID attributes. More...
 
fm.liveswitch.sdp.rtcp.Attribute getRtcpAttribute ()
 Gets Rtcp Attributes associated with this media description. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRtcpFeedbackAttribute (int payloadType, String type, String subType)
 Gets the RTCP feedback attribute for the given payload type. More...
 
boolean getRtcpMultiplexingSupported ()
 Gets a value indicating support for RTCP Multiplexing. More...
 
fm.liveswitch.sdp.Attribute[] getRtpExtMapAttributes ()
 Obtains the RTP ext-map attributes. More...
 
fm.liveswitch.sdp.rtp.MapAttribute getRtpMapAttribute (String formatName, int clockRate)
 Obtains the RTP map attribute for a given format. More...
 
fm.liveswitch.sdp.rtp.MapAttribute getRtpMapAttribute (String formatName, int clockRate, String formatParameters)
 Obtains the RTP map attribute for a given format. More...
 
fm.liveswitch.sdp.rtp.MapAttribute getRtpMapAttribute (String formatName, int clockRate, String formatParameters, fm.liveswitch.IntegerHolder rtpMapAttributeIndex)
 Obtains the RTP map attribute for a given format. More...
 
fm.liveswitch.sdp.rtp.MapAttribute getRtpMapAttribute (int payloadType)
 Obtains the RTP map attribute for a given payload type. More...
 
fm.liveswitch.sdp.rtp.MapAttribute getRtpMapAttribute (int payloadType, fm.liveswitch.IntegerHolder rtpMapAttributeIndex)
 Obtains the RTP map attribute for a given payload type. More...
 
fm.liveswitch.sdp.rtp.MapAttribute[] getRtpMapAttributes ()
 Obtains the RTP map attributes. More...
 
fm.liveswitch.sdp.rtp.MapAttribute[] getRtpMapAttributes (String formatName, int clockRate, String formatParameters)
 Obtains the RTP map attributes for a given format. More...
 
fm.liveswitch.sdp.rtp.MapAttribute[] getRtpMapAttributes (String formatName, int clockRate, String formatParameters, fm.liveswitch.Holder< int[]> rtpMapAttributeIndices)
 Obtains the RTP map attributes for a given format. More...
 
fm.liveswitch.sdp.sctp.MapAttribute getSctpMapAttribute ()
 Gets the Sctp Map Attribute, if it is present in the Media Description. More...
 
fm.liveswitch.sdp.sctp.MaxMessageSizeAttribute getSctpMaxMessageSizeAttribute ()
 Gets the Sctp Max Message Size Attribute, if it is present in the Media Description. More...
 
fm.liveswitch.sdp.sctp.PortAttribute getSctpPortAttribute ()
 Gets the Sctp Port Attribute, if it is present in the Media Description. More...
 
fm.liveswitch.sdp.SetupAttribute getSetupAttribute ()
 Gets the SetupAttribute associated with this MediaDescription. More...
 
fm.liveswitch.sdp.rtp.SimulcastAttribute getSimulcastAttribute ()
 Obtains the simulcast attribute. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute getSsrcAttribute (long ssrc, String name)
 Obtains the first SSRC attribute matching a given synchronization source and name. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute getSsrcAttribute (long ssrc, String name, String value)
 Obtains the SSRC attribute matching a given synchronization source, name, and value. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute[] getSsrcAttributes ()
 Obtains the SSRC attributes. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute[] getSsrcAttributes (String name)
 Obtains the SSRC attributes. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute[] getSsrcAttributes (long ssrc)
 Obtains the SSRC attributes matching a given synchronization source. More...
 
fm.liveswitch.sdp.rtp.SsrcAttribute[] getSsrcAttributes (long ssrc, String name)
 Obtains the SSRC attributes matching a given synchronization source and name. More...
 
fm.liveswitch.sdp.rtp.SsrcGroupAttribute[] getSsrcGroupAttributes ()
 Obtains the SSRC Group attributes. More...
 
long[] getSsrcGroupSsrcs (String semantics)
 Obtains the SSRCS from the first SSRC Group with matching semantics. More...
 
fm.liveswitch.StreamDirection getStreamDirection ()
 Gets the stream direction indicated in Media Description. More...
 
boolean getSupportsIce ()
 Gets a value indicating whether this SDP MediaDescription suggests support for ICE. More...
 
fm.liveswitch.sdp.Attribute[] getTransportCategoryAttributes ()
 Gets the attributes with Transport Multiplexing Category present in this description. More...
 
void insertMediaAttribute (fm.liveswitch.sdp.Attribute attribute, int index)
 DEPRECATED: Use AddMediaAttribute instead. More...
 
 MediaDescription (fm.liveswitch.sdp.Media media)
 Initializes a new instance of the fm.liveswitch.sdp.MediaDescription class. More...
 
boolean orderFormats (String[] names)
 Orders the formats in preference order. More...
 
boolean purgeFormat (String name)
 Removes a format by name. More...
 
boolean purgeFormat (String name, int clockRate)
 Removes a format by name and clock rate. More...
 
boolean purgeFormat (String name, int clockRate, int channelCount)
 Removes a format by name, clock rate, and channel count. More...
 
boolean removeBandwidth (fm.liveswitch.sdp.Bandwidth bandwidth)
 Removes a proposed bandwidth. More...
 
void removeBundleCategoryAttributes ()
 Removes Bundle (i.e. More...
 
boolean removeMediaAttribute (fm.liveswitch.sdp.Attribute attribute)
 Removes a media-level attribute. More...
 
void setConnectionData (fm.liveswitch.sdp.ConnectionData value)
 Sets media-level connection data. More...
 
void setEncryptionKey (fm.liveswitch.sdp.EncryptionKey value)
 Sets the media-level encryption key. More...
 
boolean setFormatParameterValue (int payloadType, String formatParameterName, String formatParameterValue)
 Sets a format parameter value. More...
 
void setIsMuted (boolean value)
 Sets a value indicating whether this stream is muted. More...
 
void setMediaTitle (String value)
 Sets the media title. More...
 
void setQualityAttribute (fm.liveswitch.sdp.QualityAttribute value)
 Sets the QualityAttribute associated with this MediaDescription. More...
 
void setRtcpAttribute (fm.liveswitch.sdp.rtcp.Attribute value)
 Sets Rtcp Attributes associated with this media description. More...
 
void setRtcpMultiplexingSupported (boolean value)
 Sets a value indicating support for RTCP Multiplexing. More...
 
void setSetupAttribute (fm.liveswitch.sdp.SetupAttribute value)
 Sets the SetupAttribute associated with this MediaDescription. More...
 
void setStreamDirection (fm.liveswitch.StreamDirection value)
 Sets the stream direction indicated in Media Description. More...
 
String toString ()
 Converts this instance to a string. More...
 
boolean tryAddContentAttribute (fm.liveswitch.sdp.ContentAttribute contentAttribute)
 Adds a content attribute if not already present. More...
 
void updateQualityAttributeValue (int quality)
 Updates SDP Quality Attribute associated with this media description if one is present. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.MediaDescription parse (String s)
 Creates an fm.liveswitch.sdp.MediaDescription instance from a string. More...
 

Detailed Description

An SDP media description element.

Constructor & Destructor Documentation

◆ MediaDescription()

fm.liveswitch.sdp.MediaDescription.MediaDescription ( fm.liveswitch.sdp.Media  media)

Initializes a new instance of the fm.liveswitch.sdp.MediaDescription class.

Parameters
mediaThe media name and transport address.

Member Function Documentation

◆ addBandwidth()

void fm.liveswitch.sdp.MediaDescription.addBandwidth ( fm.liveswitch.sdp.Bandwidth  bandwidth)

Adds a proposed bandwidth.

Parameters
bandwidthThe proposed bandwidth to add.

◆ addMediaAttribute()

void fm.liveswitch.sdp.MediaDescription.addMediaAttribute ( fm.liveswitch.sdp.Attribute  attribute)

Adds a media-level attribute.

Parameters
attributeThe session-level attribute to add.

◆ getBandwidths()

fm.liveswitch.sdp.Bandwidth [] fm.liveswitch.sdp.MediaDescription.getBandwidths ( )

Gets the array of proposed bandwidths to be used by the media.

◆ getBundleOnly()

boolean fm.liveswitch.sdp.MediaDescription.getBundleOnly ( )

Gets a value indicating whether this media description has been marked as bundle-only.

◆ getCandidateAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getCandidateAttributes ( )

Obtains Ice Candidate attributes associated with this media description.

◆ getCcmFirFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getCcmFirFeedbackAttribute ( int  payloadType)

Gets the RTCP "ccm fir" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getCcmLrrFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getCcmLrrFeedbackAttribute ( int  payloadType)

Gets the RTCP "ccm lrr" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getConnectionData()

fm.liveswitch.sdp.ConnectionData fm.liveswitch.sdp.MediaDescription.getConnectionData ( )

Gets media-level connection data.

◆ getContentAttribute()

fm.liveswitch.sdp.ContentAttribute fm.liveswitch.sdp.MediaDescription.getContentAttribute ( )

Obtains the content attribute.

◆ getCryptoAttributes()

fm.liveswitch.sdp.CryptoAttribute [] fm.liveswitch.sdp.MediaDescription.getCryptoAttributes ( )

Gets CryptoAttributes associated with this MediaDescription.

◆ getEncryptionKey()

fm.liveswitch.sdp.EncryptionKey fm.liveswitch.sdp.MediaDescription.getEncryptionKey ( )

Gets the media-level encryption key.

◆ getFingerprintAttribute()

fm.liveswitch.sdp.ice.FingerprintAttribute fm.liveswitch.sdp.MediaDescription.getFingerprintAttribute ( )

Gets the Fingerprint Attribute from this MediaDescription.

◆ getFormatParametersAttribute()

fm.liveswitch.sdp.FormatParametersAttribute fm.liveswitch.sdp.MediaDescription.getFormatParametersAttribute ( int  payloadType)

Gets the format parameters attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getFormatParameterValue()

String fm.liveswitch.sdp.MediaDescription.getFormatParameterValue ( int  payloadType,
String  formatParameterName 
)

Sets a format parameter value.

◆ getIceOptionAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getIceOptionAttributes ( )

Obtains Ice Options attributes associated with this media description.

◆ getIcePasswordAttribute()

fm.liveswitch.sdp.ice.PasswordAttribute fm.liveswitch.sdp.MediaDescription.getIcePasswordAttribute ( )

Gets the IcePasswordAttribute associated with this MediaDescription.

◆ getIceUfragAttribute()

fm.liveswitch.sdp.ice.UfragAttribute fm.liveswitch.sdp.MediaDescription.getIceUfragAttribute ( )

Gets the IceUfragAttribute associated with this MediaDescription.

◆ getIdenticalCategoryAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getIdenticalCategoryAttributes ( )

Gets the attributes with Identical Multiplexing Category present in this description.

Returns
Attributes with Identical Multiplexing Category present in this description.

◆ getIsApplication()

boolean fm.liveswitch.sdp.MediaDescription.getIsApplication ( )

Gets whether this media description represents an application stream (media type == "application").

◆ getIsAudio()

boolean fm.liveswitch.sdp.MediaDescription.getIsAudio ( )

Gets whether this media description represents an audio stream (media type == "audio").

◆ getIsMessage()

boolean fm.liveswitch.sdp.MediaDescription.getIsMessage ( )

Gets whether this media description represents a message stream (media type == "message").

◆ getIsMuted()

boolean fm.liveswitch.sdp.MediaDescription.getIsMuted ( )

Gets a value indicating whether this stream is muted.

Applies to only media streams.

◆ getIsText()

boolean fm.liveswitch.sdp.MediaDescription.getIsText ( )

Gets whether this media description represents a text stream (media type == "text").

◆ getIsVideo()

boolean fm.liveswitch.sdp.MediaDescription.getIsVideo ( )

Gets whether this media description represents a video stream (media type == "video").

◆ getMaxPacketTimeAttribute()

fm.liveswitch.sdp.MaxPacketTimeAttribute fm.liveswitch.sdp.MediaDescription.getMaxPacketTimeAttribute ( )

Obtains the maximum packet time attribute.

◆ getMedia()

fm.liveswitch.sdp.Media fm.liveswitch.sdp.MediaDescription.getMedia ( )

Gets the media name and transport address.

◆ getMediaAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getMediaAttributes ( )

Gets the array of media-level attributes.

◆ getMediaStreamIdentifierAttribute()

fm.liveswitch.sdp.MediaStreamIdAttribute fm.liveswitch.sdp.MediaDescription.getMediaStreamIdentifierAttribute ( )

Obtains the media stream identifier attribute.

◆ getMediaTitle()

String fm.liveswitch.sdp.MediaDescription.getMediaTitle ( )

Gets the media title.

◆ getNackFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getNackFeedbackAttribute ( int  payloadType)

Gets the RTCP "nack" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getNackPliFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getNackPliFeedbackAttribute ( int  payloadType)

Gets the RTCP "nack pli" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getNackRpsiFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getNackRpsiFeedbackAttribute ( int  payloadType)

Gets the RTCP "nack rpsi" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getNackSliFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getNackSliFeedbackAttribute ( int  payloadType)

Gets the RTCP "nack sli" feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.

◆ getPacketTimeAttribute()

fm.liveswitch.sdp.PacketTimeAttribute fm.liveswitch.sdp.MediaDescription.getPacketTimeAttribute ( )

Obtains the packet time attribute.

◆ getPreferredRtpMapAttributes()

fm.liveswitch.sdp.rtp.MapAttribute [] fm.liveswitch.sdp.MediaDescription.getPreferredRtpMapAttributes ( )

Obtains the RTP map attributes in preference order.

◆ getQualityAttribute()

fm.liveswitch.sdp.QualityAttribute fm.liveswitch.sdp.MediaDescription.getQualityAttribute ( )

Gets the QualityAttribute associated with this MediaDescription.

◆ getRidAttribute()

fm.liveswitch.sdp.rtp.RidAttribute fm.liveswitch.sdp.MediaDescription.getRidAttribute ( String  rid)

Obtains an RID attribute by its RID.

◆ getRidAttributes() [1/2]

fm.liveswitch.sdp.rtp.RidAttribute [] fm.liveswitch.sdp.MediaDescription.getRidAttributes ( )

Obtains the RID attributes.

◆ getRidAttributes() [2/2]

fm.liveswitch.sdp.rtp.RidAttribute [] fm.liveswitch.sdp.MediaDescription.getRidAttributes ( String  direction)

Obtains the RID attributes.

Parameters
directionThe RID attribute direction.

◆ getRtcpAttribute()

fm.liveswitch.sdp.rtcp.Attribute fm.liveswitch.sdp.MediaDescription.getRtcpAttribute ( )

Gets Rtcp Attributes associated with this media description.

◆ getRtcpFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.MediaDescription.getRtcpFeedbackAttribute ( int  payloadType,
String  type,
String  subType 
)

Gets the RTCP feedback attribute for the given payload type.

Parameters
payloadTypeThe payload type.
typeThe type.
subTypeThe sub-type.

◆ getRtcpMultiplexingSupported()

boolean fm.liveswitch.sdp.MediaDescription.getRtcpMultiplexingSupported ( )

Gets a value indicating support for RTCP Multiplexing.

◆ getRtpExtMapAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getRtpExtMapAttributes ( )

Obtains the RTP ext-map attributes.

◆ getRtpMapAttribute() [1/5]

fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.MediaDescription.getRtpMapAttribute ( int  payloadType)

Obtains the RTP map attribute for a given payload type.

Parameters
payloadTypeThe payload type.

◆ getRtpMapAttribute() [2/5]

fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.MediaDescription.getRtpMapAttribute ( int  payloadType,
fm.liveswitch.IntegerHolder  rtpMapAttributeIndex 
)

Obtains the RTP map attribute for a given payload type.

Parameters
payloadTypeThe payload type.
rtpMapAttributeIndexThe index of the fm.liveswitch.sdp.rtp.MapAttribute.

◆ getRtpMapAttribute() [3/5]

fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.MediaDescription.getRtpMapAttribute ( String  formatName,
int  clockRate 
)

Obtains the RTP map attribute for a given format.

Parameters
formatNameFormat name.
clockRateClock rate.

◆ getRtpMapAttribute() [4/5]

fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.MediaDescription.getRtpMapAttribute ( String  formatName,
int  clockRate,
String  formatParameters 
)

Obtains the RTP map attribute for a given format.

Parameters
formatNameFormat name.
clockRateClock rate.
formatParametersFormat parameters.

◆ getRtpMapAttribute() [5/5]

fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.MediaDescription.getRtpMapAttribute ( String  formatName,
int  clockRate,
String  formatParameters,
fm.liveswitch.IntegerHolder  rtpMapAttributeIndex 
)

Obtains the RTP map attribute for a given format.

Parameters
formatNameFormat name.
clockRateClock rate.
formatParametersFormat parameters.
rtpMapAttributeIndexThe index of the fm.liveswitch.sdp.rtp.MapAttribute.

◆ getRtpMapAttributes() [1/3]

fm.liveswitch.sdp.rtp.MapAttribute [] fm.liveswitch.sdp.MediaDescription.getRtpMapAttributes ( )

Obtains the RTP map attributes.

◆ getRtpMapAttributes() [2/3]

fm.liveswitch.sdp.rtp.MapAttribute [] fm.liveswitch.sdp.MediaDescription.getRtpMapAttributes ( String  formatName,
int  clockRate,
String  formatParameters 
)

Obtains the RTP map attributes for a given format.

Parameters
formatNameFormat name.
clockRateClock rate.
formatParametersFormat parameters.

◆ getRtpMapAttributes() [3/3]

fm.liveswitch.sdp.rtp.MapAttribute [] fm.liveswitch.sdp.MediaDescription.getRtpMapAttributes ( String  formatName,
int  clockRate,
String  formatParameters,
fm.liveswitch.Holder< int[]>  rtpMapAttributeIndices 
)

Obtains the RTP map attributes for a given format.

Parameters
formatNameFormat name.
clockRateClock rate.
formatParametersFormat parameters.
rtpMapAttributeIndicesThe indeces of the fm.liveswitch.sdp.rtp.MapAttribute.

◆ getSctpMapAttribute()

fm.liveswitch.sdp.sctp.MapAttribute fm.liveswitch.sdp.MediaDescription.getSctpMapAttribute ( )

Gets the Sctp Map Attribute, if it is present in the Media Description.

◆ getSctpMaxMessageSizeAttribute()

fm.liveswitch.sdp.sctp.MaxMessageSizeAttribute fm.liveswitch.sdp.MediaDescription.getSctpMaxMessageSizeAttribute ( )

Gets the Sctp Max Message Size Attribute, if it is present in the Media Description.

◆ getSctpPortAttribute()

fm.liveswitch.sdp.sctp.PortAttribute fm.liveswitch.sdp.MediaDescription.getSctpPortAttribute ( )

Gets the Sctp Port Attribute, if it is present in the Media Description.

◆ getSetupAttribute()

fm.liveswitch.sdp.SetupAttribute fm.liveswitch.sdp.MediaDescription.getSetupAttribute ( )

Gets the SetupAttribute associated with this MediaDescription.

◆ getSimulcastAttribute()

fm.liveswitch.sdp.rtp.SimulcastAttribute fm.liveswitch.sdp.MediaDescription.getSimulcastAttribute ( )

Obtains the simulcast attribute.

◆ getSsrcAttribute() [1/2]

fm.liveswitch.sdp.rtp.SsrcAttribute fm.liveswitch.sdp.MediaDescription.getSsrcAttribute ( long  ssrc,
String  name 
)

Obtains the first SSRC attribute matching a given synchronization source and name.

Parameters
ssrcThe synchronization source.
nameThe attribute name.

◆ getSsrcAttribute() [2/2]

fm.liveswitch.sdp.rtp.SsrcAttribute fm.liveswitch.sdp.MediaDescription.getSsrcAttribute ( long  ssrc,
String  name,
String  value 
)

Obtains the SSRC attribute matching a given synchronization source, name, and value.

Parameters
ssrcThe synchronization source.
nameThe attribute name.
valueThe attribute value.

◆ getSsrcAttributes() [1/4]

fm.liveswitch.sdp.rtp.SsrcAttribute [] fm.liveswitch.sdp.MediaDescription.getSsrcAttributes ( )

Obtains the SSRC attributes.

◆ getSsrcAttributes() [2/4]

fm.liveswitch.sdp.rtp.SsrcAttribute [] fm.liveswitch.sdp.MediaDescription.getSsrcAttributes ( long  ssrc)

Obtains the SSRC attributes matching a given synchronization source.

Parameters
ssrcThe synchronization source.

◆ getSsrcAttributes() [3/4]

fm.liveswitch.sdp.rtp.SsrcAttribute [] fm.liveswitch.sdp.MediaDescription.getSsrcAttributes ( long  ssrc,
String  name 
)

Obtains the SSRC attributes matching a given synchronization source and name.

Parameters
ssrcThe synchronization source.
nameThe attribute name.

◆ getSsrcAttributes() [4/4]

fm.liveswitch.sdp.rtp.SsrcAttribute [] fm.liveswitch.sdp.MediaDescription.getSsrcAttributes ( String  name)

Obtains the SSRC attributes.

Parameters
nameThe SSRC attribute name.

◆ getSsrcGroupAttributes()

fm.liveswitch.sdp.rtp.SsrcGroupAttribute [] fm.liveswitch.sdp.MediaDescription.getSsrcGroupAttributes ( )

Obtains the SSRC Group attributes.

◆ getSsrcGroupSsrcs()

long [] fm.liveswitch.sdp.MediaDescription.getSsrcGroupSsrcs ( String  semantics)

Obtains the SSRCS from the first SSRC Group with matching semantics.

◆ getStreamDirection()

fm.liveswitch.StreamDirection fm.liveswitch.sdp.MediaDescription.getStreamDirection ( )

Gets the stream direction indicated in Media Description.

Getter returns StreamDirection if DirectionAttribute is present; otherwise, returns StreamDirection.Unset.

◆ getSupportsIce()

boolean fm.liveswitch.sdp.MediaDescription.getSupportsIce ( )

Gets a value indicating whether this SDP MediaDescription suggests support for ICE.

◆ getTransportCategoryAttributes()

fm.liveswitch.sdp.Attribute [] fm.liveswitch.sdp.MediaDescription.getTransportCategoryAttributes ( )

Gets the attributes with Transport Multiplexing Category present in this description.

Returns
Attributes with Transport Multiplexing Category present in this description.

◆ insertMediaAttribute()

void fm.liveswitch.sdp.MediaDescription.insertMediaAttribute ( fm.liveswitch.sdp.Attribute  attribute,
int  index 
)

DEPRECATED: Use AddMediaAttribute instead.

Inserts a media-level attribute at the given index.

Parameters
attributeThe session-level attribute to add.
indexThe index.

◆ orderFormats()

boolean fm.liveswitch.sdp.MediaDescription.orderFormats ( String[]  names)

Orders the formats in preference order.

Parameters
namesThe format names.
Returns
false
if a media element does not exist; otherwise
true
.

◆ parse()

static fm.liveswitch.sdp.MediaDescription fm.liveswitch.sdp.MediaDescription.parse ( String  s)
static

Creates an fm.liveswitch.sdp.MediaDescription instance from a string.

Parameters
sThe string to parse.

◆ purgeFormat() [1/3]

boolean fm.liveswitch.sdp.MediaDescription.purgeFormat ( String  name)

Removes a format by name.

Parameters
nameThe format name.
Returns
true
if the format was found and removed; otherwise,
false

◆ purgeFormat() [2/3]

boolean fm.liveswitch.sdp.MediaDescription.purgeFormat ( String  name,
int  clockRate 
)

Removes a format by name and clock rate.

Parameters
nameThe format name.
clockRateThe clock rate.
Returns
true
if the format was found and removed; otherwise,
false

◆ purgeFormat() [3/3]

boolean fm.liveswitch.sdp.MediaDescription.purgeFormat ( String  name,
int  clockRate,
int  channelCount 
)

Removes a format by name, clock rate, and channel count.

Parameters
nameThe format name.
clockRateThe clock rate.
channelCountThe channel count.
Returns
true
if the format was found and removed; otherwise,
false

◆ removeBandwidth()

boolean fm.liveswitch.sdp.MediaDescription.removeBandwidth ( fm.liveswitch.sdp.Bandwidth  bandwidth)

Removes a proposed bandwidth.

Parameters
bandwidthThe proposed bandwidth to remove.

◆ removeBundleCategoryAttributes()

void fm.liveswitch.sdp.MediaDescription.removeBundleCategoryAttributes ( )

Removes Bundle (i.e.

Transport and Identical) Category Attributes.

◆ removeMediaAttribute()

boolean fm.liveswitch.sdp.MediaDescription.removeMediaAttribute ( fm.liveswitch.sdp.Attribute  attribute)

Removes a media-level attribute.

Parameters
attributeThe session-level attribute to remove.

◆ setConnectionData()

void fm.liveswitch.sdp.MediaDescription.setConnectionData ( fm.liveswitch.sdp.ConnectionData  value)

Sets media-level connection data.

◆ setEncryptionKey()

void fm.liveswitch.sdp.MediaDescription.setEncryptionKey ( fm.liveswitch.sdp.EncryptionKey  value)

Sets the media-level encryption key.

◆ setFormatParameterValue()

boolean fm.liveswitch.sdp.MediaDescription.setFormatParameterValue ( int  payloadType,
String  formatParameterName,
String  formatParameterValue 
)

Sets a format parameter value.

◆ setIsMuted()

void fm.liveswitch.sdp.MediaDescription.setIsMuted ( boolean  value)

Sets a value indicating whether this stream is muted.

Applies to only media streams.

◆ setMediaTitle()

void fm.liveswitch.sdp.MediaDescription.setMediaTitle ( String  value)

Sets the media title.

◆ setQualityAttribute()

void fm.liveswitch.sdp.MediaDescription.setQualityAttribute ( fm.liveswitch.sdp.QualityAttribute  value)

Sets the QualityAttribute associated with this MediaDescription.

◆ setRtcpAttribute()

void fm.liveswitch.sdp.MediaDescription.setRtcpAttribute ( fm.liveswitch.sdp.rtcp.Attribute  value)

Sets Rtcp Attributes associated with this media description.

◆ setRtcpMultiplexingSupported()

void fm.liveswitch.sdp.MediaDescription.setRtcpMultiplexingSupported ( boolean  value)

Sets a value indicating support for RTCP Multiplexing.

◆ setSetupAttribute()

void fm.liveswitch.sdp.MediaDescription.setSetupAttribute ( fm.liveswitch.sdp.SetupAttribute  value)

Sets the SetupAttribute associated with this MediaDescription.

◆ setStreamDirection()

void fm.liveswitch.sdp.MediaDescription.setStreamDirection ( fm.liveswitch.StreamDirection  value)

Sets the stream direction indicated in Media Description.

Getter returns StreamDirection if DirectionAttribute is present; otherwise, returns StreamDirection.Unset.

◆ toString()

String fm.liveswitch.sdp.MediaDescription.toString ( )

Converts this instance to a string.

◆ tryAddContentAttribute()

boolean fm.liveswitch.sdp.MediaDescription.tryAddContentAttribute ( fm.liveswitch.sdp.ContentAttribute  contentAttribute)

Adds a content attribute if not already present.

Parameters
contentAttributeThe content attribute.

◆ updateQualityAttributeValue()

void fm.liveswitch.sdp.MediaDescription.updateQualityAttributeValue ( int  quality)

Updates SDP Quality Attribute associated with this media description if one is present.

Otherwise, creates a new one and inserts it into this media description.

Parameters
quality