Explorar o código

Video - multiple video divs for participants - fix

Vijayakrishnan %!s(int64=3) %!d(string=hai) anos
pai
achega
fb56debf9b
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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'});