Show / Hide Table of Contents

Class SDPMediaAnnouncement

Inheritance
System.Object
SDPMediaAnnouncement
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: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SDPMediaAnnouncement

Constructors

| Improve this Doc View Source

SDPMediaAnnouncement()

Declaration
public SDPMediaAnnouncement()
| Improve this Doc View Source

SDPMediaAnnouncement(SDPConnectionInformation)

Declaration
public SDPMediaAnnouncement(SDPConnectionInformation connection)
Parameters
Type Name Description
SDPConnectionInformation connection
| Improve this Doc View Source

SDPMediaAnnouncement(SDPMediaTypesEnum, SDPConnectionInformation, Int32, SDPMessageMediaFormat)

Declaration
public SDPMediaAnnouncement(SDPMediaTypesEnum mediaType, SDPConnectionInformation connection, int port, SDPMessageMediaFormat messageMediaFormat)
Parameters
Type Name Description
SDPMediaTypesEnum mediaType
SDPConnectionInformation connection
System.Int32 port
SDPMessageMediaFormat messageMediaFormat
| Improve this Doc View Source

SDPMediaAnnouncement(SDPMediaTypesEnum, Int32, List<SDPApplicationMediaFormat>)

Declaration
public SDPMediaAnnouncement(SDPMediaTypesEnum mediaType, int port, List<SDPApplicationMediaFormat> appMediaFormats)
Parameters
Type Name Description
SDPMediaTypesEnum mediaType
System.Int32 port
System.Collections.Generic.List<SDPApplicationMediaFormat> appMediaFormats
| Improve this Doc View Source

SDPMediaAnnouncement(SDPMediaTypesEnum, Int32, List<SDPAudioVideoMediaFormat>)

Declaration
public SDPMediaAnnouncement(SDPMediaTypesEnum mediaType, int port, List<SDPAudioVideoMediaFormat> mediaFormats)
Parameters
Type Name Description
SDPMediaTypesEnum mediaType
System.Int32 port
System.Collections.Generic.List<SDPAudioVideoMediaFormat> mediaFormats
| Improve this Doc View Source

SDPMediaAnnouncement(Int32)

Declaration
public SDPMediaAnnouncement(int port)
Parameters
Type Name Description
System.Int32 port

Fields

| Improve this Doc View Source

ApplicationMediaFormats

List of media formats for "application media announcements. Application media announcements have different semantics to audio/video announcements. They can also use aribtrary strings as the format ID.

Declaration
public Dictionary<string, SDPApplicationMediaFormat> ApplicationMediaFormats
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, SDPApplicationMediaFormat>
| Improve this Doc View Source

BandwidthAttributes

Declaration
public List<string> BandwidthAttributes
Field Value
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

Connection

Declaration
public SDPConnectionInformation Connection
Field Value
Type Description
SDPConnectionInformation
| Improve this Doc View Source

DEFAULT_STREAM_STATUS

Declaration
public const MediaStreamStatusEnum DEFAULT_STREAM_STATUS = MediaStreamStatusEnum.SendRecv
Field Value
Type Description
MediaStreamStatusEnum
| Improve this Doc View Source

DtlsFingerprint

Declaration
public string DtlsFingerprint
Field Value
Type Description
System.String
| Improve this Doc View Source

ExtraMediaAttributes

Declaration
public List<string> ExtraMediaAttributes
Field Value
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

HeaderExtensions

a=extmap - Mapping for RTP header extensions

Declaration
public Dictionary<int, RTPHeaderExtension> HeaderExtensions
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Int32, RTPHeaderExtension>
| Improve this Doc View Source

IceCandidates

Declaration
public List<string> IceCandidates
Field Value
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

IceEndOfCandidates

Declaration
public bool IceEndOfCandidates
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

IceOptions

Declaration
public string IceOptions
Field Value
Type Description
System.String
| Improve this Doc View Source

IcePwd

Declaration
public string IcePwd
Field Value
Type Description
System.String
| Improve this Doc View Source

IceRole

Declaration
public IceRolesEnum? IceRole
Field Value
Type Description
System.Nullable<IceRolesEnum>
| Improve this Doc View Source

IceUfrag

Declaration
public string IceUfrag
Field Value
Type Description
System.String
| Improve this Doc View Source

m_CRLF

Declaration
public const string m_CRLF = "\r\n"
Field Value
Type Description
System.String
| Improve this Doc View Source

MaxMessageSize

The "max-message-size" attribute defined in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-26 for use in WebRTC data channels.

Declaration
public long MaxMessageSize
Field Value
Type Description
System.Int64
| Improve this Doc View Source

Media

Declaration
public SDPMediaTypesEnum Media
Field Value
Type Description
SDPMediaTypesEnum
| Improve this Doc View Source

MEDIA_EXTENSION_MAP_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_EXTENSION_MAP_ATTRIBUE_PREFIX = "a=extmap:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_ATTRIBUTE_PREFIX

Declaration
public const string MEDIA_FORMAT_ATTRIBUTE_PREFIX = "a=rtpmap:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_FEEDBACK_PREFIX

Declaration
public const string MEDIA_FORMAT_FEEDBACK_PREFIX = "a=rtcp-fb:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_MAX_MESSAGE_SIZE_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_MAX_MESSAGE_SIZE_ATTRIBUE_PREFIX = "a=max-message-size:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_PARAMETERS_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_PARAMETERS_ATTRIBUE_PREFIX = "a=fmtp:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_PATH_ACCEPT_TYPES_PREFIX

Declaration
public const string MEDIA_FORMAT_PATH_ACCEPT_TYPES_PREFIX = "a=accept-types:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_PATH_MSRP_PREFIX

Declaration
public const string MEDIA_FORMAT_PATH_MSRP_PREFIX = "a=path:msrp:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_SCTP_MAP_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_SCTP_MAP_ATTRIBUE_PREFIX = "a=sctpmap:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_SCTP_PORT_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_SCTP_PORT_ATTRIBUE_PREFIX = "a=sctp-port:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_SSRC_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_SSRC_ATTRIBUE_PREFIX = "a=ssrc:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MEDIA_FORMAT_SSRC_GROUP_ATTRIBUE_PREFIX

Declaration
public const string MEDIA_FORMAT_SSRC_GROUP_ATTRIBUE_PREFIX = "a=ssrc-group:"
Field Value
Type Description
System.String
| Improve this Doc View Source

MediaDescription

In media definitions, "i=" fields are primarily intended for labelling media streams https://tools.ietf.org/html/rfc4566#page-12

Declaration
public string MediaDescription
Field Value
Type Description
System.String
| Improve this Doc View Source

MediaFormats

For AVP these will normally be a media payload type as defined in the RTP Audio/Video Profile.

Declaration
public Dictionary<int, SDPAudioVideoMediaFormat> MediaFormats
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Int32, SDPAudioVideoMediaFormat>
| Improve this Doc View Source

MediaID

If being used in a bundle this the ID for the announcement. Example: a=mid:audio or a=mid:video.

Declaration
public string MediaID
Field Value
Type Description
System.String
| Improve this Doc View Source

MessageMediaFormat

For AVP these will normally be a media payload type as defined in the RTP Audio/Video Profile.

Declaration
public SDPMessageMediaFormat MessageMediaFormat
Field Value
Type Description
SDPMessageMediaFormat
| Improve this Doc View Source

MLineIndex

Declaration
public int MLineIndex
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Port

Declaration
public int Port
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SctpMap

The "sctpmap" attribute defined in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-26 for use in WebRTC data channels.

Declaration
public string SctpMap
Field Value
Type Description
System.String
| Improve this Doc View Source

SctpPort

The "sctp-port" attribute defined in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-26 for use in WebRTC data channels.

Declaration
public ushort? SctpPort
Field Value
Type Description
System.Nullable<System.UInt16>
| Improve this Doc View Source

SecurityDescriptions

Declaration
public List<SDPSecurityDescription> SecurityDescriptions
Field Value
Type Description
System.Collections.Generic.List<SDPSecurityDescription>
| Improve this Doc View Source

SsrcAttributes

If the RFC5576 is being used this is the list of "ssrc" attributes supplied.

Declaration
public List<SDPSsrcAttribute> SsrcAttributes
Field Value
Type Description
System.Collections.Generic.List<SDPSsrcAttribute>
| Improve this Doc View Source

SsrcGroupID

The "ssrc" attributes group ID as specified in RFC5576.

Declaration
public string SsrcGroupID
Field Value
Type Description
System.String
| Improve this Doc View Source

TIAS_BANDWIDTH_ATTRIBUE_PREFIX

Declaration
public const string TIAS_BANDWIDTH_ATTRIBUE_PREFIX = "b=TIAS:"
Field Value
Type Description
System.String
| Improve this Doc View Source

TIASBandwidth

Optional Transport Independent Application Specific Maximum (TIAS) bandwidth.

Declaration
public uint TIASBandwidth
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

Transport

Declaration
public string Transport
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

MediaStreamStatus

The stream status of this media announcement.

Declaration
public MediaStreamStatusEnum? MediaStreamStatus { get; set; }
Property Value
Type Description
System.Nullable<MediaStreamStatusEnum>

Methods

| Improve this Doc View Source

AddCryptoLine(String)

Declaration
public void AddCryptoLine(string crypto)
Parameters
Type Name Description
System.String crypto
| Improve this Doc View Source

AddExtra(String)

Declaration
public void AddExtra(string attribute)
Parameters
Type Name Description
System.String attribute
| Improve this Doc View Source

GetCryptoLine(SDPSecurityDescription.CryptoSuites)

Declaration
public SDPSecurityDescription GetCryptoLine(SDPSecurityDescription.CryptoSuites cryptoSuite)
Parameters
Type Name Description
SDPSecurityDescription.CryptoSuites cryptoSuite
Returns
Type Description
SDPSecurityDescription
| Improve this Doc View Source

GetFormatListAttributesToString()

Declaration
public string GetFormatListAttributesToString()
Returns
Type Description
System.String
| Improve this Doc View Source

GetFormatListToString()

Declaration
public string GetFormatListToString()
Returns
Type Description
System.String
| Improve this Doc View Source

GetTelephoneEventFormatID()

Attempts to locate a media format corresponding to telephone events. If available its format ID is returned.

Declaration
public int GetTelephoneEventFormatID()
Returns
Type Description
System.Int32

If found the format ID for telephone events or -1 if not.

| Improve this Doc View Source

HasCryptoLine(SDPSecurityDescription.CryptoSuites)

Declaration
public bool HasCryptoLine(SDPSecurityDescription.CryptoSuites cryptoSuite)
Parameters
Type Name Description
SDPSecurityDescription.CryptoSuites cryptoSuite
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ParseMediaFormats(String)

Declaration
public void ParseMediaFormats(string formatList)
Parameters
Type Name Description
System.String formatList
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

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