Avoids double loading of the player.
This commit is contained in:
parent
8a80df2828
commit
952eaf5a0c
|
@ -64,6 +64,8 @@ export default class SharedVideoManager {
|
||||||
if (this.isSharedVideoShown)
|
if (this.isSharedVideoShown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
this.isSharedVideoShown = true;
|
||||||
|
|
||||||
// the video url
|
// the video url
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
|
||||||
|
@ -148,8 +150,6 @@ export default class SharedVideoManager {
|
||||||
SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
|
SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
|
||||||
VideoLayout.handleVideoThumbClicked(self.url);
|
VideoLayout.handleVideoThumbClicked(self.url);
|
||||||
|
|
||||||
self.isSharedVideoShown = true;
|
|
||||||
|
|
||||||
// If we are sending the command and we are starting the player
|
// If we are sending the command and we are starting the player
|
||||||
// we need to continuously send the player current time position
|
// we need to continuously send the player current time position
|
||||||
if(APP.conference.isLocalId(self.from)) {
|
if(APP.conference.isLocalId(self.from)) {
|
||||||
|
@ -167,7 +167,7 @@ export default class SharedVideoManager {
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onPlayerError = function(event) {
|
window.onPlayerError = function(event) {
|
||||||
console.error("Error in the player:" + event.data);
|
console.error("Error in the player:", event.data);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue