Explorar o código

Space out pollers to once in 15 seconds

Vijayakrishnan %!s(int64=4) %!d(string=hai) anos
pai
achega
4791346546

+ 1 - 1
public/js/mc.js

@@ -349,6 +349,6 @@ function initPatientPresenceIndicator() {
                     }
                 }, 'json');
             }
-        }, 2500);
+        }, 15000); // once in 15 seconds
     }
 }

+ 2 - 2
resources/views/app/video/call.blade.php

@@ -378,7 +378,7 @@
                             height: '100%',
                         };
                         var publisher = OT.initPublisher('self-view', publisherOptions, self.handleOpenTokError);
-                       
+
                         publisher.on('streamCreated', function (event) {
                             var selfView = $('#self-view');
                             selfView.attr('data-stream', event.stream.id);
@@ -547,7 +547,7 @@
                     this.refresh();
                     window.setInterval(function() {
                         self.refresh();
-                    }, 2500);
+                    }, 15000); // once in 15 seconds
                 },
                 methods: {
                     refresh: function() {

+ 1 - 1
resources/views/layouts/template.blade.php

@@ -255,7 +255,7 @@
                     $('.current-work').html(_data);
                     initFastLoad($('.current-work'));
                 });
-            }, 2500);
+            }, 15000); // once in 15 seconds
         });
     </script>
     <script>