kurento-utils
Advanced tools
Comparing version 6.14.0 to 6.15.0
@@ -29,9 +29,2 @@ /* | ||
// var gUM = navigator.mediaDevices.getUserMedia || function (constraints) { | ||
// return new Promise(navigator.getUserMedia(constraints, function (stream) { | ||
// videoStream = stream | ||
// start() | ||
// }).eror(callback)); | ||
// } | ||
try { | ||
@@ -485,2 +478,13 @@ require('kurento-browser-extensions') | ||
} | ||
} else if (mode === 'sendonly') { | ||
/* The constructor's "start()" method already added any available track, | ||
* which by default creates Transceiver with "sendrecv" direction. | ||
* | ||
* Here, we set all transceivers to only send audio and/or video, so the | ||
* SDP Offer that will be generated by the PC includes these medias | ||
* with the "a=sendonly" attribute. | ||
*/ | ||
pc.getTransceivers().forEach(function (transceiver) { | ||
transceiver.direction = "sendonly"; | ||
}); | ||
} | ||
@@ -711,10 +715,2 @@ | ||
// [Hack] https://code.google.com/p/chromium/issues/detail?id=443558 | ||
var browser = parser.getBrowser() | ||
if (mode === 'sendonly' && | ||
(browser.name === 'Chrome' || browser.name === 'Chromium') && | ||
browser.major === 39) { | ||
mode = 'sendrecv' | ||
} | ||
callback() | ||
@@ -721,0 +717,0 @@ } |
{ | ||
"name": "kurento-utils", | ||
"version": "6.14.0", | ||
"version": "6.15.0", | ||
"description": "Kurento JavaScript Utilities", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
82467
1599