Revision b9d05234
html/janus.js | ||
---|---|---|
242 | 242 |
if(iceServers === undefined || iceServers === null) |
243 | 243 |
iceServers = [{urls: "stun:stun.l.google.com:19302"}]; |
244 | 244 |
var iceTransportPolicy = gatewayCallbacks.iceTransportPolicy; |
245 |
var bundlePolicy = gatewayCallbacks.bundlePolicy; |
|
246 |
if(!bundlePolicy) |
|
247 |
bundlePolicy = "max-bundle"; |
|
245 | 248 |
// Whether IPv6 candidates should be gathered |
246 | 249 |
var ipv6Support = gatewayCallbacks.ipv6; |
247 | 250 |
if(ipv6Support === undefined || ipv6Support === null) |
... | ... | |
1241 | 1244 |
var config = pluginHandle.webrtcStuff; |
1242 | 1245 |
Janus.debug("streamsDone:", stream); |
1243 | 1246 |
config.myStream = stream; |
1244 |
var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy}; |
|
1247 |
var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy, "bundlePolicy": bundlePolicy};
|
|
1245 | 1248 |
//~ var pc_constraints = {'mandatory': {'MozDontOfferDataChannel':true}}; |
1246 | 1249 |
var pc_constraints = { |
1247 | 1250 |
"optional": [{"DtlsSrtpKeyAgreement": true}] |
html/janus.nojquery.js | ||
---|---|---|
304 | 304 |
if(iceServers === undefined || iceServers === null) |
305 | 305 |
iceServers = [{urls: "stun:stun.l.google.com:19302"}]; |
306 | 306 |
var iceTransportPolicy = gatewayCallbacks.iceTransportPolicy; |
307 |
var bundlePolicy = gatewayCallbacks.bundlePolicy; |
|
308 |
if(!bundlePolicy) |
|
309 |
bundlePolicy = "max-bundle"; |
|
307 | 310 |
// Whether IPv6 candidates should be gathered |
308 | 311 |
var ipv6Support = gatewayCallbacks.ipv6; |
309 | 312 |
if(ipv6Support === undefined || ipv6Support === null) |
... | ... | |
1292 | 1295 |
var config = pluginHandle.webrtcStuff; |
1293 | 1296 |
Janus.debug("streamsDone:", stream); |
1294 | 1297 |
config.myStream = stream; |
1295 |
var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy}; |
|
1298 |
var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy, "bundlePolicy": bundlePolicy};
|
|
1296 | 1299 |
//~ var pc_constraints = {'mandatory': {'MozDontOfferDataChannel':true}}; |
1297 | 1300 |
var pc_constraints = { |
1298 | 1301 |
"optional": [{"DtlsSrtpKeyAgreement": true}] |
Also available in: Unified diff