Browse Source

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

(cherry picked from commit a14b3c80ae)
dev1
Christoph Wiechert 5 years ago
parent
commit
b3e67c2a09
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js View File

@@ -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…
Cancel
Save