Class Attribute
The RTCP attribute is used to document the RTCP port used for media stream, when that port is not the next higher (odd) port number following the RTP port described in the media line.
Inherited Members
Namespace: FM.LiveSwitch.Sdp.Rtcp
Assembly: FM.LiveSwitch.dll
Syntax
public class Attribute : Attribute
Constructors
Attribute(Int32, String)
Initializes a new instance of the Attribute class.
Declaration
public Attribute(int port, string connectionAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | port | The RTCP port number. |
| System.String | connectionAddress | The RTCP connection address. |
Properties
AddressType
Gets or sets the type of the address. See AddressType for possible values.
Declaration
public string AddressType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ConnectionAddress
Gets or sets the RTCP connection address.
Declaration
public string ConnectionAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
NetworkType
Gets or sets the type of network. See NetworkType for possible values.
Declaration
public string NetworkType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Port
Gets or sets the RTCP port number.
Declaration
public int Port { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
FromAttributeValue(String)
Initializes a new instance of the Attribute class.
Declaration
public static Attribute FromAttributeValue(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The attribute value. |
Returns
| Type | Description |
|---|---|
| Attribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
Update(Int32, String)
Updates the port and connection address.
Declaration
public void Update(int port, string connectionAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | port | The port. |
| System.String | connectionAddress | The connection address. |