Prevents users that are not sharing the video of pausing the video and leaves the control to the user sharing the video.

This commit is contained in:
damencho 2016-04-01 17:23:30 -05:00
parent 7dad981112
commit b949ffdda1
1 changed files with 9 additions and 0 deletions

View File

@ -189,6 +189,12 @@ export default class SharedVideoManager {
self.sharedVideo = new SharedVideoContainer(
{url, iframe, player});
//prevents pausing participants not sharing the video
// to pause the video
if (!APP.conference.isLocalId(self.from)) {
$("#sharedVideo").css("pointer-events","none");
}
VideoLayout.addLargeVideoContainer(
SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);
VideoLayout.handleVideoThumbClicked(self.url);
@ -372,6 +378,9 @@ export default class SharedVideoManager {
this.errorInPlayer.destroy();
this.errorInPlayer = null;
}
// revert to original behavior (prevents pausing
// for participants not sharing the video to pause it)
$("#sharedVideo").css("pointer-events","auto");
});
this.url = null;