ソースを参照

Video - multiple video divs for participants - fix

Vijayakrishnan 3 年 前
コミット
fb56debf9b
1 ファイル変更9 行追加0 行削除
  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'});