Edit

Share via


Sdp<TGlobalDescription,TMediaDescription> Class

Definition

Parses or builds an SDP as defined by RFC 2327. Note: All public static members of this type are thread-safe. All instance members are not guaranteed to be thread-safe.

generic <typename TGlobalDescription, typename TMediaDescription>
 where TGlobalDescription : SdpGlobalDescriptiongcnew() where TMediaDescription : SdpMediaDescriptiongcnew()public ref class Sdp
public class Sdp<TGlobalDescription,TMediaDescription> where TGlobalDescription : SdpGlobalDescriptionnew() where TMediaDescription : SdpMediaDescriptionnew()
type Sdp<'GlobalDescription, 'MediaDescription (requires 'GlobalDescription :> SdpGlobalDescription and 'GlobalDescription : (new : unit -> 'GlobalDescription) and 'MediaDescription :> SdpMediaDescription and 'MediaDescription : (new : unit -> 'MediaDescription))> = class
Public Class Sdp(Of TGlobalDescription, TMediaDescription)

Type Parameters

TGlobalDescription
TMediaDescription
Inheritance
Sdp<TGlobalDescription,TMediaDescription>
Derived

Constructors

Sdp<TGlobalDescription,TMediaDescription>()

Initializes an instance of the SDP class.

Sdp<TGlobalDescription,TMediaDescription>(Sdp<TGlobalDescription,TMediaDescription>)

Initializes a deep copy of the supplied SDP class by copying member fields as well.

Properties

CapacityEstimate

Gets the approximate amount of space required (in characters) to serialize the SDP.

GlobalDescription

Gets the GlobalDescription associated with this SDP.

LastParseErrorLineNumber

Gets the line number within the SDP where the error was detected. Line numbers start at 1.

LastParseErrorMessage

Gets a detailed message describing why the SDP could not be parsed upon failure.

MediaDescriptions

Gets the list of MediaDescriptions associated with this SDP.

Methods

GetBytes()

Creates an array of bytes containing a valid SDP that is ready to be transmitted. This function calls Write() and then converts the result to an array of bytes using the UTF-8 character set.

Parse(ArraySegment<Byte>, Boolean)

Parses the supplied array segment into data structures representing the components of the SDP.

Parse(ArraySegment<Byte>)

Parses the supplied array segment into data structures representing the components of the SDP.

Parse(Byte[])

Parses the supplied byte array into data structures representing the components of the SDP.

Parse(String)

Parses the supplied array segment into data structures representing the components of the SDP.

ToString()

Creates a string containing a valid SDP that is ready to be transmitted. This function calls Write() and then converts the result to a string.

TryParse(ArraySegment<Byte>)

Parses the supplied array segment of bytes as an SDP. Returns true if the SDP is valid.

TryParse(Byte[], Int32, Int32, Boolean)

Parses the supplied array of bytes as an SDP. Returns true if the SDP is valid.

TryParse(Byte[])

Parses the supplied array of bytes as an SDP. Returns true if the SDP is valid.

TryParse(String)

Parses the supplied string. This function will convert the string to an array of UTF8 encoded bytes and then call the TryParse() function with an array of bytes.

Write(TextWriter)

Creates a string containing a valid SDP that is ready to be transmitted.

Applies to