Explorar el Código

fix(video-quality): Apply pending video constraints on p2p originator

dev1
Jaya Allamsetty hace 5 años
padre
commit
f3c8837cd2
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8
    0
      JitsiConference.js

+ 8
- 0
JitsiConference.js Ver fichero

@@ -1728,6 +1728,14 @@ JitsiConference.prototype.onCallAccepted = function(session, answer) {
1728 1728
     if (this.p2pJingleSession === session) {
1729 1729
         logger.info('P2P setAnswer');
1730 1730
 
1731
+        // Apply pending video constraints.
1732
+        if (this.pendingVideoConstraintsOnP2P) {
1733
+            this.p2pJingleSession.setSenderVideoConstraint(this.maxFrameHeight)
1734
+                .catch(err => {
1735
+                    logger.error(`Sender video constraints failed on p2p session - ${err}`);
1736
+                });
1737
+        }
1738
+
1731 1739
         // Setup E2EE.
1732 1740
         const localTracks = this.getLocalTracks();
1733 1741
 

Loading…
Cancelar
Guardar