Pārlūkot izejas kodu

fix(JingleSessionPC): Disable unified-plan for p2p.

Disable cross browser p2p using unified plan until all the issues are fixed.
tags/v0.0.2
Jaya Allamsetty 4 gadus atpakaļ
vecāks
revīzija
5738c80baf
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2
    2
      JitsiConference.js
  2. 1
    1
      modules/xmpp/JingleSessionPC.js

+ 2
- 2
JitsiConference.js Parādīt failu

@@ -1929,7 +1929,7 @@ JitsiConference.prototype._onIncomingCallP2P = function(
1929 1929
 
1930 1930
     let rejectReason;
1931 1931
 
1932
-    if (!this.isP2PEnabled() && !this.isP2PTestModeEnabled()) {
1932
+    if (!this.isP2PEnabled() && !this.isP2PTestModeEnabled() && (browser.isFirefox() || browser.isWebKitBased())) {
1933 1933
         rejectReason = {
1934 1934
             reason: 'decline',
1935 1935
             reasonDescription: 'P2P disabled',
@@ -3193,7 +3193,7 @@ JitsiConference.prototype._suspendMediaTransferForJvbConnection = function() {
3193 3193
  * @private
3194 3194
  */
3195 3195
 JitsiConference.prototype._maybeStartOrStopP2P = function(userLeftEvent) {
3196
-    if (!this.isP2PEnabled() || this.isP2PTestModeEnabled()) {
3196
+    if (!this.isP2PEnabled() || this.isP2PTestModeEnabled() || browser.isFirefox() || browser.isWebKitBased()) {
3197 3197
         logger.info('Auto P2P disabled');
3198 3198
 
3199 3199
         return;

+ 1
- 1
modules/xmpp/JingleSessionPC.js Parādīt failu

@@ -337,7 +337,7 @@ export default class JingleSessionPC extends JingleSession {
337 337
             = browser.supportsUnifiedPlan()
338 338
                 && (browser.isFirefox()
339 339
                     || browser.isWebKitBased()
340
-                    || (browser.isChromiumBased() && options.enableUnifiedOnChrome));
340
+                    || (!this.isP2P && browser.isChromiumBased() && options.enableUnifiedOnChrome));
341 341
 
342 342
         if (this.isP2P) {
343 343
             // simulcast needs to be disabled for P2P (121) calls

Notiek ielāde…
Atcelt
Saglabāt