Class RTPHeaderExtension
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.RTP
Assembly: SIPSorcery.dll
Syntax
public abstract class RTPHeaderExtension
Constructors
| Improve this Doc View SourceRTPHeaderExtension(Int32, String, Int32, RTPHeaderExtensionType, SDPMediaTypesEnum[])
To create a RTP Header Extension
Declaration
public RTPHeaderExtension(int id, string uri, int extensionSize, RTPHeaderExtensionType type, params SDPMediaTypesEnum[] medias)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | System.Int32 Id / extmap |
System.String | uri | System.Stringuri |
System.Int32 | extensionSize | |
RTPHeaderExtensionType | type | RTPHeaderExtensiontype (one or two bytes) |
SDPMediaTypesEnum[] | medias | SDPMediaTypesEnummedia(s) supportef by this extension - set null/empty if all medias are supported |
Properties
| Improve this Doc View SourceExtensionSize
Declaration
public int ExtensionSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Id
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Medias
Declaration
public List<SDPMediaTypesEnum> Medias { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SDPMediaTypesEnum> |
Type
Declaration
public RTPHeaderExtensionType Type { get; }
Property Value
Type | Description |
---|---|
RTPHeaderExtensionType |
Uri
Declaration
public string Uri { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetRTPHeaderExtension(Int32, String, SDPMediaTypesEnum)
Create an RTPHeaderExtension (AbsSendTimeExtension, CVOExtension, etc ...) based on the URI provided If found, id permits to store the "extmap" value related to this extension It not found returns null
Declaration
public static RTPHeaderExtension GetRTPHeaderExtension(int id, string uri, SDPMediaTypesEnum media)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | extmap value |
System.String | uri | URI of the extension - for example: "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time" or "urn:3gpp:video-orientation" |
SDPMediaTypesEnum | media |
Returns
Type | Description |
---|---|
RTPHeaderExtension | A Specific RTPHeaderExtension |
IsMediaSupported(SDPMediaTypesEnum)
Declaration
public bool IsMediaSupported(SDPMediaTypesEnum media)
Parameters
Type | Name | Description |
---|---|---|
SDPMediaTypesEnum | media |
Returns
Type | Description |
---|---|
System.Boolean |
Marshal()
Declaration
public abstract byte[] Marshal()
Returns
Type | Description |
---|---|
System.Byte[] |
Set(Object)
Declaration
public abstract void Set(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Unmarshal(RTPHeader, Byte[])
Declaration
public abstract object Unmarshal(RTPHeader header, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
RTPHeader | header | |
System.Byte[] | data |
Returns
Type | Description |
---|---|
System.Object |