|
@@ -987,7 +987,9 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream, isAndroid
|
987
|
987
|
}
|
988
|
988
|
}
|
989
|
989
|
|
990
|
|
- setResolutionConstraints(constraints, resolution, isAndroid);
|
|
990
|
+ if (um.indexOf('video') >= 0) {
|
|
991
|
+ setResolutionConstraints(constraints, resolution, isAndroid);
|
|
992
|
+ }
|
991
|
993
|
|
992
|
994
|
if (bandwidth) { // doesn't work currently, see webrtc issue 1846
|
993
|
995
|
if (!constraints.video) constraints.video = {mandatory: {}, optional: []};//same behaviour as true
|
|
@@ -9407,10 +9409,12 @@ NativeSimulcastSender.prototype._appendSimulcastGroup = function (lines) {
|
9407
|
9409
|
simSSRC = this._generateRandomSSRC();
|
9408
|
9410
|
ssrcGroup.push(simSSRC);
|
9409
|
9411
|
|
9410
|
|
- sb.splice.apply(sb, [sb.length, 0].concat(
|
9411
|
|
- [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
|
9412
|
|
- ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
|
9413
|
|
- ));
|
|
9412
|
+ if (videoSources.base) {
|
|
9413
|
+ sb.splice.apply(sb, [sb.length, 0].concat(
|
|
9414
|
+ [["a=ssrc:", simSSRC, " cname:", videoSources.base.cname].join(''),
|
|
9415
|
+ ["a=ssrc:", simSSRC, " msid:", videoSources.base.msid].join('')]
|
|
9416
|
+ ));
|
|
9417
|
+ }
|
9414
|
9418
|
|
9415
|
9419
|
this.logger.info(['Generated substream ', i, ' with SSRC ', simSSRC, '.'].join(''));
|
9416
|
9420
|
|