This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new c6fcd14 [OPENMEETINGS-2151] kurento-utils device doubling seems to be
fixed
c6fcd14 is described below
commit c6fcd141f3d3c48f309b0ab4edcf051ac28d6e86
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Thu Dec 26 18:47:20 2019 +0700
[OPENMEETINGS-2151] kurento-utils device doubling seems to be fixed
---
.../src/main/java/org/apache/openmeetings/web/room/kurento-utils.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/kurento-utils.js
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/kurento-utils.js
index 4820987..c5436dc 100644
---
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/kurento-utils.js
+++
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/kurento-utils.js
@@ -308,10 +308,10 @@ function WebRtcPeer(mode, options, callback) {
useAudio = typeof mediaConstraints.audio === 'boolean' ?
mediaConstraints.audio : true;
useVideo = typeof mediaConstraints.video === 'boolean' ?
mediaConstraints.video : true;
}
- if (useAudio) {
+ if (mode !== 'sendonly' && useAudio) {
pc.addTransceiver('audio', { direction: mode });
}
- if (useVideo) {
+ if (mode !== 'sendonly' && useVideo) {
pc.addTransceiver('video', { direction: mode });
}
if (typeof AdapterJS !== 'undefined' &&
AdapterJS.webrtcDetectedBrowser === 'IE' && AdapterJS.webrtcDetectedVersion >=
9) {