public class RTPAudioFormat extends AudioFormat implements RTPFormat
m=audio 8010 RTP/AVP 0 8 97 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=ptime:20
ALAW, BIG_ENDIAN, channels, DOLBYAC3, DVI4, endian, frameRate, frameSizeInBits, G722, G723, G728, G729, G729A, GSM, GSM_MS, IMA4, IMA4_MS, LINEAR, LITTLE_ENDIAN, LPC, MAC3, MAC6, MPEG, MPEGLAYER3, MSADPCM, MSNAUDIO, MSRT24, sampleRate, sampleSizeInBits, signed, SIGNED, TRUESPEECH, ULAW, ULAW_RTP, UNSIGNED, VOXWAREAC10, VOXWAREAC16, VOXWAREAC20, VOXWAREAC8, VOXWAREMETASOUND, VOXWAREMETAVOICE, VOXWARERT29H, VOXWARETQ40, VOXWARETQ60, VOXWAREVR12, VOXWAREVR18ANY, encoding, FALSE, FORMAT_HASHMAP_DEFAULT_INITIAL_CAPACITY, FORMAT_HASHMAP_DEFAULT_LOAD_FACTOR, NOT_SPECIFIED, TRUE| Constructor and Description |
|---|
RTPAudioFormat(int payload,
String encodingName)
Creates a new instance of RTPAudioFormat
|
RTPAudioFormat(int payload,
String encodingName,
double sampleRate,
int bits,
int chans) |
RTPAudioFormat(int payload,
String encodingName,
double sampleRate,
int bits,
int chans,
int endian,
int signed) |
| Modifier and Type | Method and Description |
|---|---|
Collection<javax.sdp.Attribute> |
encode()
Encodes format objects to SDP attributes.
|
int |
getPayloadType()
Defines the RTP payload type.
|
static RTPAudioFormat |
parseFormat(String encodingName) |
static RTPAudioFormat |
parseRtpmapFormat(String rtpmap) |
void |
setPayloadType(int payload) |
String |
toSdp() |
clone, equals, getChannels, getEndian, getFrameRate, getFrameSizeInBits, getSampleRate, getSampleSizeInBits, getSigned, hashCode, matches, toString, toStringgetEncoding, isSameEncoding, isSameEncodingpublic RTPAudioFormat(int payload,
String encodingName)
public RTPAudioFormat(int payload,
String encodingName,
double sampleRate,
int bits,
int chans)
public RTPAudioFormat(int payload,
String encodingName,
double sampleRate,
int bits,
int chans,
int endian,
int signed)
public int getPayloadType()
RTPFormatgetPayloadType in interface RTPFormatpublic void setPayloadType(int payload)
public static RTPAudioFormat parseFormat(String encodingName)
public static RTPAudioFormat parseRtpmapFormat(String rtpmap)
public Collection<javax.sdp.Attribute> encode()
RTPFormatpublic String toSdp()
Copyright © 2015 TeleStax, Inc.. All Rights Reserved.