Show / Hide Table of Contents

Class RTPHeaderExtension

Inheritance
System.Object
RTPHeaderExtension
AbsSendTimeExtension
AudioLevelExtension
CVOExtension
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 Source

RTPHeaderExtension(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 Source

ExtensionSize

Declaration
public int ExtensionSize { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Id

Declaration
public int Id { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Medias

Declaration
public List<SDPMediaTypesEnum> Medias { get; }
Property Value
Type Description
System.Collections.Generic.List<SDPMediaTypesEnum>
| Improve this Doc View Source

Type

Declaration
public RTPHeaderExtensionType Type { get; }
Property Value
Type Description
RTPHeaderExtensionType
| Improve this Doc View Source

Uri

Declaration
public string Uri { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetRTPHeaderExtension(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

| Improve this Doc View Source

IsMediaSupported(SDPMediaTypesEnum)

Declaration
public bool IsMediaSupported(SDPMediaTypesEnum media)
Parameters
Type Name Description
SDPMediaTypesEnum media
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Marshal()

Declaration
public abstract byte[] Marshal()
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

Set(Object)

Declaration
public abstract void Set(object obj)
Parameters
Type Name Description
System.Object obj
| Improve this Doc View Source

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

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX