瀏覽代碼

Ensure play after participant add/leave

Vijayakrishnan 4 年之前
父節點
當前提交
e3b6ef452a
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      resources/views/app/video/call-agora-v2.blade.php

+ 6 - 6
resources/views/app/video/call-agora-v2.blade.php

@@ -345,9 +345,9 @@
                                         return _participant.uid === eventData.performer;
                                     });
                                     if(!existing.length) this.otherParticipants.push(eventData.data);
-                                    // Vue.nextTick(() => {
-                                    //     this.refreshVideos();
-                                    // });
+                                    Vue.nextTick(() => {
+                                        this.refreshVideos();
+                                    });
                                 }
                             }
                         });
@@ -429,9 +429,9 @@
                                          return _participant.uid !== eventData.performer;
                                     });
 
-                                    // Vue.nextTick(() => {
-                                    //     this.refreshVideos();
-                                    // });
+                                    Vue.nextTick(() => {
+                                        this.refreshVideos();
+                                    });
                                 }
                             }
                         });