aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp
diff options
context:
space:
mode:
authorSebastien Vincent <seb@jitsi.org>2010-08-17 12:34:10 +0000
committerSebastien Vincent <seb@jitsi.org>2010-08-17 12:34:10 +0000
commit1badc1107a9aff8482c7af96c9617d7536e3af0a (patch)
treeb850f3df3cf88eeecd6e7711460e03991d2c8a56 /src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp
parent3c10a76dfbf961bcd2b25bc536aaeeef53facab9 (diff)
downloadjitsi-1badc1107a9aff8482c7af96c9617d7536e3af0a.zip
jitsi-1badc1107a9aff8482c7af96c9617d7536e3af0a.tar.gz
jitsi-1badc1107a9aff8482c7af96c9617d7536e3af0a.tar.bz2
- Add desktop streaming operation set for XMPP/Jingle;
- Fix rescaling at sender side (for answerer of a call only); - Support for MediaFormat's format parameters and advanced attributes in XMPP.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java b/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
index eec2b40..2099e7f 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
@@ -9,13 +9,10 @@ package net.java.sip.communicator.impl.protocol.jabber.jinglesdp;
import java.net.*;
import java.util.*;
-import org.jivesoftware.smack.packet.*;
-
import net.java.sip.communicator.impl.protocol.jabber.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.*;
import net.java.sip.communicator.service.neomedia.*;
import net.java.sip.communicator.service.neomedia.format.*;
-import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.media.*;
import net.java.sip.communicator.util.*;
import static net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ContentPacketExtension.*;
@@ -483,6 +480,25 @@ public class JingleUtils
ptExt.setClockrate((int)format.getClockRate());
+ /* add parameters */
+ for(Map.Entry<String, String> entry :
+ format.getFormatParameters().entrySet())
+ {
+ ParameterPacketExtension ext = new ParameterPacketExtension();
+ ext.setName(entry.getKey());
+ ext.setValue(entry.getValue());
+ ptExt.addParameter(ext);
+ }
+
+ for(Map.Entry<String, String> entry :
+ format.getAdvancedAttributes().entrySet())
+ {
+ ParameterPacketExtension ext = new ParameterPacketExtension();
+ ext.setName(entry.getKey());
+ ext.setValue(entry.getValue());
+ ptExt.addParameter(ext);
+ }
+
return ptExt;
}