Преглед на файлове

Space out pollers to once in 15 seconds

Vijayakrishnan преди 4 години
родител
ревизия
4791346546
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      public/js/mc.js
  2. 2 2
      resources/views/app/video/call.blade.php
  3. 1 1
      resources/views/layouts/template.blade.php

+ 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>