瀏覽代碼

Fix: Scale down localVideo which is already smaller than requested resolution

(cherry picked from commit a14b3c80ae)
master
Christoph Wiechert 5 年之前
父節點
當前提交
b3e67c2a09
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

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

@@ -2190,7 +2190,7 @@ TraceablePeerConnection.prototype.setSenderVideoConstraint = function(frameHeigh
2190 2190
                 parameters.encodings[encoding].active = encodingsEnabledState[encoding];
2191 2191
             }
2192 2192
         }
2193
-    } else {
2193
+    } else if (localVideoTrack.resolution > newHeight) {
2194 2194
         parameters.encodings[0].scaleResolutionDownBy = Math.floor(localVideoTrack.resolution / newHeight);
2195 2195
     }
2196 2196
 

Loading…
取消
儲存