mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-07 11:31:10 +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:
parent
244882cc16
commit
68901d0890
5 changed files with 24 additions and 7 deletions
|
|
@ -436,6 +436,5 @@ public class AudioChannel {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue