Class MediaStreamStatusType
Inheritance
System.Object
MediaStreamStatusType
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)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class MediaStreamStatusType
Fields
| Improve this Doc View SourceINACTIVE_ATTRIBUTE
Declaration
public const string INACTIVE_ATTRIBUTE = "a=inactive"
Field Value
Type | Description |
---|---|
System.String |
RECV_ONLY_ATTRIBUTE
Declaration
public const string RECV_ONLY_ATTRIBUTE = "a=recvonly"
Field Value
Type | Description |
---|---|
System.String |
SEND_ONLY_ATTRIBUTE
Declaration
public const string SEND_ONLY_ATTRIBUTE = "a=sendonly"
Field Value
Type | Description |
---|---|
System.String |
SEND_RECV_ATTRIBUTE
Declaration
public const string SEND_RECV_ATTRIBUTE = "a=sendrecv"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetAttributeForMediaStreamStatus(MediaStreamStatusEnum)
Gets the attribute to include in a serialised SDP payload for a media stream status.
Declaration
public static string GetAttributeForMediaStreamStatus(MediaStreamStatusEnum mediaStreamStatus)
Parameters
Type | Name | Description |
---|---|---|
MediaStreamStatusEnum | mediaStreamStatus | The status to get the attribute for. |
Returns
Type | Description |
---|---|
System.String | An attribute string matching the status value. |
IsMediaStreamStatusAttribute(String, out MediaStreamStatusEnum)
Checks whether an SDP attribute is one of the four possible media stream attributes.
Declaration
public static bool IsMediaStreamStatusAttribute(string attributeString, out MediaStreamStatusEnum mediaStreamStatus)
Parameters
Type | Name | Description |
---|---|---|
System.String | attributeString | The attribute string to check. |
MediaStreamStatusEnum | mediaStreamStatus | If the attribute was recognised as a media stream attribute this will hold it. |
Returns
Type | Description |
---|---|
System.Boolean | True if the attribute matched or false if not. |