use all in lib, restrict to relay in app

This commit is contained in:
Philipp Hancke 2014-10-16 13:45:41 +02:00
parent 0bd6f34b0f
commit b268c7fdc5
2 changed files with 2 additions and 1 deletions

1
app.js
View File

@ -108,6 +108,7 @@ function connect(jid, password) {
// for chrome, add multistream cap
}
connection.jingle.pc_constraints = RTC.pc_constraints;
connection.jingle.ice_config.iceTransports = 'relay';
if (config.useIPv6) {
// https://code.google.com/p/webrtc/issues/detail?id=2828
if (!connection.jingle.pc_constraints.optional) connection.jingle.pc_constraints.optional = [];

View File

@ -3,7 +3,7 @@ Strophe.addConnectionPlugin('jingle', {
connection: null,
sessions: {},
jid2session: {},
ice_config: {iceServers: [], iceTransports: 'relay'},
ice_config: {iceServers: [], iceTransports: 'all'},
pc_constraints: {},
media_constraints: {
mandatory: {