浏览代码

Avoids double loading of the player.

j8
damencho 9 年前
父节点
当前提交
952eaf5a0c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      modules/UI/shared_video/SharedVideo.js

+ 3
- 3
modules/UI/shared_video/SharedVideo.js 查看文件

64
         if (this.isSharedVideoShown)
64
         if (this.isSharedVideoShown)
65
             return;
65
             return;
66
 
66
 
67
+        this.isSharedVideoShown = true;
68
+
67
         // the video url
69
         // the video url
68
         this.url = url;
70
         this.url = url;
69
 
71
 
148
                 SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
150
                 SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
149
             VideoLayout.handleVideoThumbClicked(self.url);
151
             VideoLayout.handleVideoThumbClicked(self.url);
150
 
152
 
151
-            self.isSharedVideoShown = true;
152
-
153
             // If we are sending the command and we are starting the player
153
             // If we are sending the command and we are starting the player
154
             // we need to continuously send the player current time position
154
             // we need to continuously send the player current time position
155
             if(APP.conference.isLocalId(self.from)) {
155
             if(APP.conference.isLocalId(self.from)) {
167
         };
167
         };
168
 
168
 
169
         window.onPlayerError = function(event) {
169
         window.onPlayerError = function(event) {
170
-            console.error("Error in the player:" + event.data);
170
+            console.error("Error in the player:", event.data);
171
         };
171
         };
172
     }
172
     }
173
 
173
 

正在加载...
取消
保存