From 952eaf5a0c8257fb52cf3e4427a79e7fe2165375 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 30 Mar 2016 21:36:05 -0500 Subject: [PATCH] Avoids double loading of the player. --- modules/UI/shared_video/SharedVideo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js index 7b32f7990..6adab009b 100644 --- a/modules/UI/shared_video/SharedVideo.js +++ b/modules/UI/shared_video/SharedVideo.js @@ -64,6 +64,8 @@ export default class SharedVideoManager { if (this.isSharedVideoShown) return; + this.isSharedVideoShown = true; + // the video url this.url = url; @@ -148,8 +150,6 @@ export default class SharedVideoManager { SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo); VideoLayout.handleVideoThumbClicked(self.url); - self.isSharedVideoShown = true; - // If we are sending the command and we are starting the player // we need to continuously send the player current time position if(APP.conference.isLocalId(self.from)) { @@ -167,7 +167,7 @@ export default class SharedVideoManager { }; window.onPlayerError = function(event) { - console.error("Error in the player:" + event.data); + console.error("Error in the player:", event.data); }; }