ソースを参照

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,6 +64,8 @@ export default class SharedVideoManager {
64 64
         if (this.isSharedVideoShown)
65 65
             return;
66 66
 
67
+        this.isSharedVideoShown = true;
68
+
67 69
         // the video url
68 70
         this.url = url;
69 71
 
@@ -148,8 +150,6 @@ export default class SharedVideoManager {
148 150
                 SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
149 151
             VideoLayout.handleVideoThumbClicked(self.url);
150 152
 
151
-            self.isSharedVideoShown = true;
152
-
153 153
             // If we are sending the command and we are starting the player
154 154
             // we need to continuously send the player current time position
155 155
             if(APP.conference.isLocalId(self.from)) {
@@ -167,7 +167,7 @@ export default class SharedVideoManager {
167 167
         };
168 168
 
169 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
 

読み込み中…
キャンセル
保存