Improved chrome screensharing constraints and fixed SFU exception

This commit is contained in:
prlanzarin 2018-04-27 14:37:18 +00:00
parent 35fae897fb
commit 9fe4fecf2c
3 changed files with 5 additions and 5 deletions

View File

@ -419,9 +419,9 @@ window.getScreenConstraints = function (sendSource, callback) {
{ googCpuOveruseDetection: true },
{ googCpuOveruseEncodeUsage: true },
{ googCpuUnderuseThreshold: 55 },
{ googCpuOveruseThreshold: 85 },
{ googCpuOveruseThreshold: 100},
{ googPayloadPadding: true },
{ googScreencastMinBitrate: 400 },
{ googScreencastMinBitrate: 600 },
{ googHighStartBitrate: true },
{ googHighBitrate: true },
{ googVeryHighBitrate: true }

View File

@ -419,9 +419,9 @@ window.getScreenConstraints = function (sendSource, callback) {
{ googCpuOveruseDetection: true },
{ googCpuOveruseEncodeUsage: true },
{ googCpuUnderuseThreshold: 55 },
{ googCpuOveruseThreshold: 85 },
{ googCpuOveruseThreshold: 100},
{ googPayloadPadding: true },
{ googScreencastMinBitrate: 400 },
{ googScreencastMinBitrate: 600 },
{ googHighStartBitrate: true },
{ googHighBitrate: true },
{ googVeryHighBitrate: true }

View File

@ -94,7 +94,7 @@ module.exports = class ScreenshareManager extends BaseManager {
break;
case 'onIceCandidate':
if (session.constructor === Screenshare) {
if (session && session.constructor === Screenshare) {
session.onIceCandidate(message.candidate, role, callerName);
} else {
Logger.info(this._logPrefix, "Queueing ice candidate for later in screenshare", message.voiceBridge);