浏览代码

fixed hungup for pro

Josh 4 年之前
父节点
当前提交
8d1473b523
共有 1 个文件被更改,包括 2 次插入4 次删除
  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";
                         return minutes + " min, " + seconds + " sec";
                     },
                     },
                     hangUp: function () {
                     hangUp: function () {
-                        var sef = this;
+                        var self = this;
                         if (this.otSession) {
                         if (this.otSession) {
                             try {
                             try {
                                 this.otSession.unpublish(this.publisher);
                                 this.otSession.unpublish(this.publisher);
@@ -215,9 +215,7 @@
                             this.startTime = false;
                             this.startTime = false;
                             this.videoActive = false;
                             this.videoActive = false;
                              if(self.publisher){
                              if(self.publisher){
-                                 self.publisher.destroy();
-                             }else{
-                                alert("No publisher");
+                                self.publisher.destroy();
                              }
                              }
                              window.top.hideRHS();
                              window.top.hideRHS();
                             // this.client = false;
                             // this.client = false;