Selaa lähdekoodia

tpc: fix setSenderVideoConstraint on mobile

It's not yet supported, so assume success.
dev1
Saúl Ibarra Corretgé 5 vuotta sitten
vanhempi
commit
cd008d726f
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      modules/RTC/TraceablePeerConnection.js

+ 5
- 0
modules/RTC/TraceablePeerConnection.js Näytä tiedosto

2077
  * successful and rejected otherwise.
2077
  * successful and rejected otherwise.
2078
  */
2078
  */
2079
 TraceablePeerConnection.prototype.setSenderVideoConstraint = function(frameHeight = null) {
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
     const newHeight = frameHeight || this.senderVideoMaxHeight;
2085
     const newHeight = frameHeight || this.senderVideoMaxHeight;
2081
 
2086
 
2082
     this.senderVideoMaxHeight = newHeight;
2087
     this.senderVideoMaxHeight = newHeight;

Loading…
Peruuta
Tallenna