SdpMediaDescription Members

Include Protected Members
Include Inherited Members

Represents a media section of the SDP.

The SdpMediaDescription type exposes the following members.

Constructors

  Name Description
Public method SdpMediaDescription() Initializes a new instance of the class.
Public method SdpMediaDescription(String) Initializes a new instance of the class.
Protected method SdpMediaDescription(SdpMediaDescription) Constructs an copy of the supplied media section. This constructor is private, but the Copy() function may be used to create a copy.

Top

Properties

  Name Description
Public property Attributes Gets the list of "a" lines from the SDP.
Public property Bandwidth Gets the details of the "b" line from the SDP.
Public property Connection Gets the details of the "c" line from the SDP.
Public property EncryptionKey Gets the details of the "k" line from the SDP.
Public property Formats Gets one or more tokens found at the end of the "m" line. When using RTP for a transport, these tokens usually represent a list of payload types.
Public property MediaName Gets the type of media represented by the "m" line; for example, "audio" and "video."
Public property Port Gets the port where the media should be directed.
Public property PortCount Gets the number of ports in series starting with the value returned by the Port property. Default value if nothing is specified is 1.
Public property TransportProtocol Gets the transport protocol specified in the "m" line. For example, "RTP/AVP". The default value "RTP/AVP" is used when serializing if nothing else is specified.

Top

Methods

  Name Description
Public method Copy Creates a new instance of SdpMediaDescription with the same values of the current instance. This function performs a deep copy by copying member fields as well.
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Protected method ParseAttribute Called whenever an attribute should be processed by the parser. A derived class can overload this function and provide customized parsing. The supplied default function will simply create an instance of SdpAttribute and append it to the list of SdpAttributes. Should a derived class still want the attribute appended, it should call the base implementation.
Protected method SerializeAttributes Serializes attributes ("a" lines) onto the supplied SdpWriter.
Protected method SerializeFormats Serializes supported formats onto the supplied StringBuilder.
Public method ToString (inherited from Object)
Public method Write Appends the global section of the SDP to the provided string builder.

Top

See Also

Reference

SdpMediaDescription Class

Microsoft.Rtc.Signaling Namespace