SdpMediaDescription Class

Definition

Represents a media section of the SDP.

public ref class SdpMediaDescription
public class SdpMediaDescription
type SdpMediaDescription = class
Public Class SdpMediaDescription
Inheritance
SdpMediaDescription
Derived

Constructors

SdpMediaDescription()

Initializes a new instance of the class.

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.

SdpMediaDescription(String)

Initializes a new instance of the class.

Properties

Attributes

Gets the list of "a" lines from the SDP.

Bandwidth

Gets or sets details of the "b" line from the SDP.

Bandwidths

Gets the list of bandwidths from the SDP.

Connection

Gets the details of the "c" line from the SDP.

EncryptionKey

Gets the details of the "k" line from the SDP.

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.

MediaName

Gets the type of media represented by the "m" line; for example, "audio" and "video."

Port

Gets the port where the media should be directed.

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.

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.

Methods

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.

ParseAttribute(SdpParseStatus, String, String)

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.

SerializeAttributes(SdpWriter)

Serializes attributes ("a" lines) onto the supplied SdpWriter.

SerializeFormats(SdpWriter)

Serializes supported formats onto the supplied StringBuilder.

Write(TextWriter)

Appends the global section of the SDP to the provided string builder.

Applies to