aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2010-10-19 09:51:19 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2010-10-19 09:51:19 +0000
commit0bfadb48948260b88bc252695b3c84e5ff6af9f4 (patch)
tree34d0f2cd003453def98e308b660a162d51a79dea /src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp
parenta496b37ac740dddebf9d4f2efd809b7a252c7def (diff)
downloadjitsi-0bfadb48948260b88bc252695b3c84e5ff6af9f4.zip
jitsi-0bfadb48948260b88bc252695b3c84e5ff6af9f4.tar.gz
jitsi-0bfadb48948260b88bc252695b3c84e5ff6af9f4.tar.bz2
Commits work in progress on enabling ICE support in Jingle calls:
- Sends transport-info without content child extensions other than transport. - Does not send candidates in session-accept if they have already been sent in transport-info. - Does not wait for connectivity establishment to conclude before sending session-accept because the ICE controlling agent determines when the connectivity establishment concludes.
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.java19
1 files changed, 12 insertions, 7 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 bef4beb..bbb21b0 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
@@ -116,19 +116,24 @@ public class JingleUtils
DynamicPayloadTypeRegistry ptRegistry)
{
byte pt = (byte)payloadType.getID();
- List<ParameterPacketExtension> params = payloadType.getParameters();
//convert params to a name:value map
+ List<ParameterPacketExtension> params = payloadType.getParameters();
Map<String, String> paramsMap = new HashMap<String, String>();
for(ParameterPacketExtension param : params)
paramsMap.put(param.getName(), param.getValue());
//now create the format.
- MediaFormat format = JabberActivator.getMediaService()
- .getFormatFactory().createMediaFormat(
- pt, payloadType.getName(), (double)payloadType.getClockrate(),
- payloadType.getChannels(), paramsMap, null);
+ MediaFormat format
+ = JabberActivator.getMediaService().getFormatFactory()
+ .createMediaFormat(
+ pt,
+ payloadType.getName(),
+ (double)payloadType.getClockrate(),
+ payloadType.getChannels(),
+ paramsMap,
+ null);
//we don't seem to know anything about this format
if(format == null)
@@ -527,8 +532,8 @@ public class JingleUtils
for(Component component : stream.getComponents())
{
- for(Candidate cand : component.getLocalCandidates())
- trans.addCandidate(createCandidate(cand));
+ for(Candidate candidate : component.getLocalCandidates())
+ trans.addCandidate(createCandidate(candidate));
}
return trans;