Class Media
An SDP media element.
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class Media : object
Constructors
Media()
Initializes a new instance of the Media class.
Declaration
public Media()
Media(String, Int32, String)
Initializes a new instance of the Media class.
Declaration
public Media(string mediaType, int transportPort, string transportProtocol)
Parameters
Type | Name | Description |
---|---|---|
System. |
mediaType | The media type. See Media |
System. |
transportPort | The transport port. |
System. |
transportProtocol | The transport protocol. |
Media(String, Int32, String, String)
Initializes a new instance of the Media class.
Declaration
public Media(string mediaType, int transportPort, string transportProtocol, string formatDescription)
Parameters
Type | Name | Description |
---|---|---|
System. |
mediaType | The media type. See Media |
System. |
transportPort | The transport port. |
System. |
transportProtocol | The transport protocol. |
System. |
formatDescription | The format description. |
Properties
FormatDescription
Gets or sets the format description.
Declaration
public string FormatDescription { get; set; }
Property Value
Type | Description |
---|---|
System. |
MediaType
Gets or sets the media type. See Media
Declaration
public string MediaType { get; set; }
Property Value
Type | Description |
---|---|
System. |
NumberOfPorts
Gets or sets the number of ports.
Declaration
public short NumberOfPorts { get; set; }
Property Value
Type | Description |
---|---|
System. |
TransportPort
Gets or sets the transport port.
Declaration
public int TransportPort { get; set; }
Property Value
Type | Description |
---|---|
System. |
TransportProtocol
Gets or sets the transport protocol.
Declaration
public string TransportProtocol { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Parse(String)
Creates an Media instance from a string.
Declaration
public static Media Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
System. |
s | The string to parse. |
Returns
Type | Description |
---|---|
Media |
ToString()
Converts this instance to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |