|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.Format
org.mobicents.media.format.AudioFormat
org.mobicents.media.server.impl.rtp.sdp.RTPAudioFormat
public class RTPAudioFormat
This represents the RTP Audio Format. The difference being RTPAudioFormat
also carries the pay-load. For example look at SDP
m=audio 8010 RTP/AVP 0 8 97 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:97 speex/8000 a=ptime:20
| Field Summary |
|---|
| Fields inherited from class org.mobicents.media.format.AudioFormat |
|---|
ALAW, BIG_ENDIAN, channels, DOLBYAC3, DVI, endian, frameRate, frameSizeInBits, G723, G728, G729, G729A, GSM, GSM_MS, IMA4, IMA4_MS, LINEAR, LITTLE_ENDIAN, MAC3, MAC6, MPEG, MPEGLAYER3, MSADPCM, MSNAUDIO, MSRT24, sampleRate, sampleSizeInBits, signed, SIGNED, SPEEX, TRUESPEECH, ULAW, ULAW_RTP, UNSIGNED, VOXWAREAC10, VOXWAREAC16, VOXWAREAC20, VOXWAREAC8, VOXWAREMETASOUND, VOXWAREMETAVOICE, VOXWARERT29H, VOXWARETQ40, VOXWARETQ60, VOXWAREVR12, VOXWAREVR18 |
| Fields inherited from class org.mobicents.media.Format |
|---|
ANY, byteArray, clz, dataType, encoding, FALSE, FORMAT_HASHMAP_DEFAULT_INITIAL_CAPACITY, FORMAT_HASHMAP_DEFAULT_LOAD_FACTOR, formatArray, intArray, NOT_SPECIFIED, shortArray, TRUE |
| Constructor Summary | |
|---|---|
RTPAudioFormat(int payload,
java.lang.String encodingName)
Creates a new instance of RTPAudioFormat |
|
RTPAudioFormat(int payload,
java.lang.String encodingName,
double sampleRate,
int bits,
int chans)
|
|
RTPAudioFormat(int payload,
java.lang.String encodingName,
double sampleRate,
int bits,
int chans,
int endian,
int signed)
|
|
| Method Summary | |
|---|---|
java.util.Collection<javax.sdp.Attribute> |
encode()
Encodes format objects to SDP attributes. |
int |
getPayloadType()
Defines the RTP payload type. |
static RTPAudioFormat |
parseFormat(java.lang.String rtpmap)
|
void |
setPayloadType(int payload)
|
java.lang.String |
toSdp()
|
| Methods inherited from class org.mobicents.media.format.AudioFormat |
|---|
clone, computeDuration, copy, equals, getChannels, getEndian, getFrameRate, getFrameSizeInBits, getSampleRate, getSampleSizeInBits, getSigned, hashCode, intersects, matches, toString, toString |
| Methods inherited from class org.mobicents.media.Format |
|---|
getDataType, getEncoding, isSameEncoding, isSameEncoding, relax |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RTPAudioFormat(int payload,
java.lang.String encodingName)
public RTPAudioFormat(int payload,
java.lang.String encodingName,
double sampleRate,
int bits,
int chans)
public RTPAudioFormat(int payload,
java.lang.String encodingName,
double sampleRate,
int bits,
int chans,
int endian,
int signed)
| Method Detail |
|---|
public int getPayloadType()
RTPFormat
getPayloadType in interface RTPFormatpublic void setPayloadType(int payload)
public static RTPAudioFormat parseFormat(java.lang.String rtpmap)
public java.util.Collection<javax.sdp.Attribute> encode()
RTPFormat
encode in interface RTPFormatpublic java.lang.String toSdp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||