瀏覽代碼

tpc: fix setSenderVideoConstraint on mobile

It's not yet supported, so assume success.
master
Saúl Ibarra Corretgé 4 年之前
父節點
當前提交
cd008d726f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      modules/RTC/TraceablePeerConnection.js

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

@@ -2077,6 +2077,11 @@ TraceablePeerConnection.prototype.setRemoteDescription = function(description) {
2077 2077
  * successful and rejected otherwise.
2078 2078
  */
2079 2079
 TraceablePeerConnection.prototype.setSenderVideoConstraint = function(frameHeight = null) {
2080
+    // XXX: This is not yet supported on mobile.
2081
+    if (browser.isReactNative()) {
2082
+        return Promise.resolve();
2083
+    }
2084
+
2080 2085
     const newHeight = frameHeight || this.senderVideoMaxHeight;
2081 2086
 
2082 2087
     this.senderVideoMaxHeight = newHeight;

Loading…
取消
儲存