Ver Fonte

Video - multiple video divs for participants - fix

Vijayakrishnan há 3 anos atrás
pai
commit
fb56debf9b
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      resources/views/app/video/call-minimal.blade.php

+ 9 - 0
resources/views/app/video/call-minimal.blade.php

@@ -139,6 +139,8 @@
             $btnMuteAudio: null,
             $btnUnmuteAudio: null,
 
+            initializing: false,
+
             // methods
             init: function() {
 
@@ -299,6 +301,13 @@
             // init media
             initMedia: function() {
 
+                if(this.initializing) {
+                    console.log('Init already in progress.');
+                    return;
+                }
+
+                this.initializing = true;
+
                 // create client
                 this.mediaServiceClient = AgoraRTC.createClient({mode: 'rtc', codec: 'vp8'});