Sfoglia il codice sorgente

fixed hungup for pro

Josh 4 anni fa
parent
commit
8d1473b523
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      resources/views/app/video/call.blade.php

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

@@ -201,7 +201,7 @@
                         return minutes + " min, " + seconds + " sec";
                     },
                     hangUp: function () {
-                        var sef = this;
+                        var self = this;
                         if (this.otSession) {
                             try {
                                 this.otSession.unpublish(this.publisher);
@@ -215,9 +215,7 @@
                             this.startTime = false;
                             this.videoActive = false;
                              if(self.publisher){
-                                 self.publisher.destroy();
-                             }else{
-                                alert("No publisher");
+                                self.publisher.destroy();
                              }
                              window.top.hideRHS();
                             // this.client = false;