From 8dabb513da9d5f08a8e1476c40bec60d3e596a0a Mon Sep 17 00:00:00 2001 From: Boris Grozev <boris@jitsi.org> Date: Tue, 17 Jun 2014 15:42:07 +0200 Subject: [PATCH] Adds RED and ULPFEC formats. --- src/org/jitsi/impl/neomedia/MediaUtils.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/org/jitsi/impl/neomedia/MediaUtils.java b/src/org/jitsi/impl/neomedia/MediaUtils.java index 25a9e0a5..b04158ec 100644 --- a/src/org/jitsi/impl/neomedia/MediaUtils.java +++ b/src/org/jitsi/impl/neomedia/MediaUtils.java @@ -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", -- GitLab