Skip to content
Snippets Groups Projects
Commit d2af4daf authored by Boris Grozev's avatar Boris Grozev
Browse files

Changes the default priority of Opus in the configuration, it's now on top....

Changes the default priority of Opus in the configuration, it's now on top. Removes the DVI4 codec formats, since they are not supported.
parent 3c3fedb4
No related branches found
No related tags found
No related merge requests found
...@@ -114,18 +114,6 @@ public class MediaUtils ...@@ -114,18 +114,6 @@ public class MediaUtils
MediaType.AUDIO, MediaType.AUDIO,
AudioFormat.GSM_RTP, AudioFormat.GSM_RTP,
8000); 8000);
addMediaFormats(
(byte) SdpConstants.DVI4_8000,
"DVI4",
MediaType.AUDIO,
AudioFormat.DVI_RTP,
8000);
addMediaFormats(
(byte) SdpConstants.DVI4_16000,
"DVI4",
MediaType.AUDIO,
AudioFormat.DVI_RTP,
16000);
addMediaFormats( addMediaFormats(
(byte) SdpConstants.PCMA, (byte) SdpConstants.PCMA,
"PCMA", "PCMA",
......
...@@ -72,6 +72,7 @@ private void initializeFormatPreferences() ...@@ -72,6 +72,7 @@ private void initializeFormatPreferences()
800); 800);
// audio // audio
setEncodingPreference("opus", 48000, 750);
setEncodingPreference("G722", 8000 /* actually, 16 kHz */, 705); setEncodingPreference("G722", 8000 /* actually, 16 kHz */, 705);
setEncodingPreference("SILK", 24000, 704); setEncodingPreference("SILK", 24000, 704);
setEncodingPreference("SILK", 16000, 703); setEncodingPreference("SILK", 16000, 703);
...@@ -82,14 +83,11 @@ private void initializeFormatPreferences() ...@@ -82,14 +83,11 @@ private void initializeFormatPreferences()
setEncodingPreference("iLBC", 8000, 500); setEncodingPreference("iLBC", 8000, 500);
setEncodingPreference("GSM", 8000, 450); setEncodingPreference("GSM", 8000, 450);
setEncodingPreference("speex", 8000, 352); setEncodingPreference("speex", 8000, 352);
setEncodingPreference("DVI4", 8000, 300);
setEncodingPreference("DVI4", 16000, 250);
setEncodingPreference("G723", 8000, 150); setEncodingPreference("G723", 8000, 150);
setEncodingPreference("SILK", 12000, 0); setEncodingPreference("SILK", 12000, 0);
setEncodingPreference("SILK", 8000, 0); setEncodingPreference("SILK", 8000, 0);
setEncodingPreference("G729", 8000, 0 /* proprietary */); setEncodingPreference("G729", 8000, 0 /* proprietary */);
setEncodingPreference("opus", 48000, 2);
// enables by default telephone event(DTMF rfc4733), with lowest // enables by default telephone event(DTMF rfc4733), with lowest
// priority as it is not needed to order it with audio codecs // priority as it is not needed to order it with audio codecs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment