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

Adds RED and ULPFEC formats.

parent a7edb1d4
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,20 @@ public class MediaUtils
Constants.TELEPHONE_EVENT,
8000);
// Although we use "red" and "ulpfec" as jmf encodings here, FMJ
// should never see RTP packets of these types. Such packets should be
// handled by transform engines before being passed to FMJ.
addMediaFormats(
MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN,
Constants.RED,
MediaType.VIDEO,
Constants.RED);
addMediaFormats(
MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN,
Constants.ULPFEC,
MediaType.VIDEO,
Constants.ULPFEC);
ConfigurationService cfg = LibJitsi.getConfigurationService();
......@@ -178,6 +192,7 @@ public class MediaUtils
boolean opusDtx = cfg.getBoolean(Constants.PROP_OPUS_DTX, true);
if(opusDtx)
opusFormatParams.put("usedtx", "1");
//opusFormatParams.put("minptime", "10");
addMediaFormats(
MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN,
"opus",
......
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