Forráskód Böngészése

Ensure play after participant add/leave

Vijayakrishnan 4 éve
szülő
commit
e3b6ef452a
1 módosított fájl, 6 hozzáadás és 6 törlés
  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();
+                                    });
                                 }
                             }
                         });