Class AudioMediaUtils
Utility function relating to audio media handling
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public static class AudioMediaUtils
Fields
| Edit this page View SourceAMRWB_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the AMR-WB codec. There is actually no defined default payload type so one is defined here.
Declaration
public const int AMRWB_DEFAULT_PAYLOAD_TYPE = 20
Field Value
Type | Description |
---|---|
int |
G722_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the G.722 codec
Declaration
public const int G722_DEFAULT_PAYLOAD_TYPE = 9
Field Value
Type | Description |
---|---|
int |
G729_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the G.729 codec
Declaration
public const int G729_DEFAULT_PAYLOAD_TYPE = 18
Field Value
Type | Description |
---|---|
int |
PCMA_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the G.711 PCMA codec
Declaration
public const int PCMA_DEFAULT_PAYLOAD_TYPE = 8
Field Value
Type | Description |
---|---|
int |
PCMU_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the G.711 PCMU codec
Declaration
public const int PCMU_DEFAULT_PAYLOAD_TYPE = 0
Field Value
Type | Description |
---|---|
int |
TELEPHONE_EVENT_DEFAULT_PAYLOAD_TYPE
Default payload type (codec number) for the telephone-event usint RTP DTMF events.
Declaration
public const int TELEPHONE_EVENT_DEFAULT_PAYLOAD_TYPE = 101
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceSupportedAudioCodecs
Gets a list of supported audio codecs.
Declaration
public static List<string> SupportedAudioCodecs { get; }
Property Value
Type | Description |
---|---|
List<string> |
Methods
| Edit this page View SourceGetAudioDecoder(MediaDescription)
Creates an IAudioDecoder object given the negotiated MediaDescription object.
Declaration
public static IAudioDecoder? GetAudioDecoder(MediaDescription mediaDescription)
Parameters
Type | Name | Description |
---|---|---|
MediaDescription | mediaDescription | Input negotiated MediaDescription |
Returns
Type | Description |
---|---|
IAudioDecoder | Returns the negotiated IAudioDecoder. Returns null if the decoder is unknown. |
GetAudioEncoder(MediaDescription)
Creates an IAudioEncoder given the negotiated MediaDescription object.
Declaration
public static IAudioEncoder? GetAudioEncoder(MediaDescription mediaDescription)
Parameters
Type | Name | Description |
---|---|---|
MediaDescription | mediaDescription | Input negotiated MediaDescription |
Returns
Type | Description |
---|---|
IAudioEncoder | Returns the negotiated IAudioEncoder. Returns null if the encoder is unknown. |