1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-07 05:31:08 +01:00

New Codec added

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7383 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-03-06 02:04:54 +00:00 committed by thiago
parent 244882cc16
commit 68901d0890
5 changed files with 24 additions and 7 deletions

View file

@ -436,6 +436,5 @@ public class AudioChannel {
e.printStackTrace();
}
}
}

View file

@ -40,6 +40,8 @@ public class AudioFormatUtils {
public static AudioFormat getAudioFormat(PayloadType payloadtype) {
switch (payloadtype.getId()) {
case 0:
return new AudioFormat(AudioFormat.ULAW_RTP);
case 3:
return new AudioFormat(AudioFormat.GSM_RTP);
case 4:

View file

@ -67,6 +67,7 @@ public class JmfMediaManager extends JingleMediaManager {
private void setupPayloads() {
payloads.add(new PayloadType.Audio(3, "gsm"));
payloads.add(new PayloadType.Audio(4, "g723"));
payloads.add(new PayloadType.Audio(0, "PCMU", 16000));
}
/**
@ -77,7 +78,7 @@ public class JmfMediaManager extends JingleMediaManager {
public List<PayloadType> getPayloads() {
return payloads;
}
/**
* Runs JMFInit the first time the application is started so that capture
* devices are properly detected and initialized by JMF.