Improved chrome screensharing constraints and fixed SFU exception
This commit is contained in:
parent
35fae897fb
commit
9fe4fecf2c
@ -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 }
|
||||
|
@ -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 }
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user