浏览代码

fix(screenshare): Add google conference flag only when simulcast is on

This will make sure we get 30 fps for screenshare on p2p connections
dev1
Jaya Allamsetty 5 年前
父节点
当前提交
3794646b5c
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7
    5
      modules/RTC/TraceablePeerConnection.js

+ 7
- 5
modules/RTC/TraceablePeerConnection.js 查看文件

@@ -2008,11 +2008,13 @@ TraceablePeerConnection.prototype.setRemoteDescription = function(description) {
2008 2008
 
2009 2009
     if (browser.usesPlanB()) {
2010 2010
         // TODO the focus should squeze or explode the remote simulcast
2011
-        // eslint-disable-next-line no-param-reassign
2012
-        description = this.simulcast.mungeRemoteDescription(description);
2013
-        this.trace(
2014
-            'setRemoteDescription::postTransform (simulcast)',
2015
-            dumpSDP(description));
2011
+        if (this.isSimulcastOn()) {
2012
+            // eslint-disable-next-line no-param-reassign
2013
+            description = this.simulcast.mungeRemoteDescription(description);
2014
+            this.trace(
2015
+                'setRemoteDescription::postTransform (simulcast)',
2016
+                dumpSDP(description));
2017
+        }
2016 2018
 
2017 2019
         if (this.options.preferH264) {
2018 2020
             const parsedSdp = transform.parse(description.sdp);

正在加载...
取消
保存