Class Media
An SDP media element.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class Media
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.String | mediaType | The media type. See MediaType for possible values. |
System.Int32 | transportPort | The transport port. |
System.String | 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.String | mediaType | The media type. See MediaType for possible values. |
System.Int32 | transportPort | The transport port. |
System.String | transportProtocol | The transport protocol. |
System.String | formatDescription | The format description. |
Properties
FormatDescription
Gets or sets the format description.
Declaration
public string FormatDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MediaType
Gets or sets the media type. See MediaType for possible values.
Declaration
public string MediaType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NumberOfPorts
Gets or sets the number of ports.
Declaration
public short NumberOfPorts { get; set; }
Property Value
Type | Description |
---|---|
System.Int16 |
TransportPort
Gets or sets the transport port.
Declaration
public int TransportPort { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TransportProtocol
Gets or sets the transport protocol.
Declaration
public string TransportProtocol { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Parse(String)
Creates an Media instance from a string.
Declaration
public static Media Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | 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.String |
Overrides
System.Object.ToString()