Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes audio-only (when GUM fails)

Zalmoxisus40de181959a2
diff --git a/libs/modules/RTC.bundle.js b/libs/modules/RTC.bundle.js
index dfb3918f31..df574b85b7 100644
--- a/libs/modules/RTC.bundle.js
+++ b/libs/modules/RTC.bundle.js
@@ -700,7 +700,9 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream, isAndroid
}
}
- setResolutionConstraints(constraints, resolution, isAndroid);
+ if (um.indexOf('video') >= 0) {
+ setResolutionConstraints(constraints, resolution, isAndroid);
+ }
if (bandwidth) { // doesn't work currently, see webrtc issue 1846
if (!constraints.video) constraints.video = {mandatory: {}, optional: []};//same behaviour as true
diff --git a/libs/modules/simulcast.bundle.js b/libs/modules/simulcast.bundle.js
index 01673b3a56..1f137e0ed6 100644
--- a/libs/modules/simulcast.bundle.js
+++ b/libs/modules/simulcast.bundle.js
@@ -380,10 +380,12 @@ NativeSimulcastSender.prototype._appendSimulcastGroup = function (lines) {
simSSRC = this._generateRandomSSRC();
ssrcGroup.push(simSSRC);
- sb.splice.apply(sb, [sb.length, 0].concat(
- [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
- ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
- ));
+ if (videoSources.base) {
+ sb.splice.apply(sb, [sb.length, 0].concat(
+ [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
+ ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
+ ));
+ }
this.logger.info(['Generated substream ', i, ' with SSRC ', simSSRC, '.'].join(''));
diff --git a/modules/RTC/RTCUtils.js b/modules/RTC/RTCUtils.js
index 0197eb1ffd..63cf47df70 100644
--- a/modules/RTC/RTCUtils.js
+++ b/modules/RTC/RTCUtils.js
@@ -115,7 +115,9 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream, isAndroid
}
}
- setResolutionConstraints(constraints, resolution, isAndroid);
+ if (um.indexOf('video') >= 0) {
+ setResolutionConstraints(constraints, resolution, isAndroid);
+ }
if (bandwidth) { // doesn't work currently, see webrtc issue 1846
if (!constraints.video) constraints.video = {mandatory: {}, optional: []};//same behaviour as true
diff --git a/modules/simulcast/SimulcastSender.js b/modules/simulcast/SimulcastSender.js
index 6bef36dd51..1a4605ead0 100644
--- a/modules/simulcast/SimulcastSender.js
+++ b/modules/simulcast/SimulcastSender.js
@@ -78,10 +78,12 @@ NativeSimulcastSender.prototype._appendSimulcastGroup = function (lines) {
simSSRC = this._generateRandomSSRC();
ssrcGroup.push(simSSRC);
- sb.splice.apply(sb, [sb.length, 0].concat(
- [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
- ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
- ));
+ if (videoSources.base) {
+ sb.splice.apply(sb, [sb.length, 0].concat(
+ [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
+ ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
+ ));
+ }
this.logger.info(['Generated substream ', i, ' with SSRC ', simSSRC, '.'].join(''));