Enables shared video for all participants, the first to share is the video all will see, later attempts will result just a dialog informing that video is already shared.

This commit is contained in:
damencho
2016-03-25 19:38:56 -05:00
parent 9b09e61877
commit 7d0cd00a50
4 changed files with 13 additions and 14 deletions

View File

@@ -43,8 +43,15 @@ export default class SharedVideoManager {
return;
}
showStopVideoPropmpt().then(() =>
this.emitter.emit(UIEvents.UPDATE_SHARED_VIDEO, null, 'stop'));
if(APP.conference.isLocalId(this.from)) {
showStopVideoPropmpt().then(() =>
this.emitter.emit(UIEvents.UPDATE_SHARED_VIDEO, null, 'stop'));
} else {
messageHandler.openMessageDialog(
"dialog.shareVideoTitle",
"dialog.alreadySharedVideoMsg"
);
}
}
/**