Removes join / leave notifications if the participant start audio muted.

This commit is contained in:
hristoterezov 2015-05-26 14:18:45 +03:00
parent 5746261961
commit 1d660e1883
4 changed files with 25 additions and 5 deletions

View File

@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
<script src="libs/app.bundle.js?v=73"></script>
<script src="libs/app.bundle.js?v=74"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1">

View File

@ -7706,6 +7706,8 @@ var VideoLayout = (function (my) {
container.id = 'mixedstream';
container.className = 'videocontainer';
remotes.appendChild(container);
if(!config.startAudioMuted ||
config.startAudioMuted > APP.members.size())
UIUtil.playSoundNotification('userJoined');
}
@ -8227,6 +8229,8 @@ var VideoLayout = (function (my) {
// Remove whole container
container.remove();
if(!config.startAudioMuted ||
config.startAudioMuted > APP.members.size())
UIUtil.playSoundNotification('userLeft');
VideoLayout.resizeThumbnails();
}
@ -10283,6 +10287,12 @@ var Members = {
},
removeListener: function (type, listener) {
eventEmitter.removeListener(type, listener);
},
size: function () {
return Object.keys(members).length;
},
getMembers: function () {
return members;
}
};

View File

@ -779,6 +779,8 @@ var VideoLayout = (function (my) {
container.id = 'mixedstream';
container.className = 'videocontainer';
remotes.appendChild(container);
if(!config.startAudioMuted ||
config.startAudioMuted > APP.members.size())
UIUtil.playSoundNotification('userJoined');
}
@ -1300,6 +1302,8 @@ var VideoLayout = (function (my) {
// Remove whole container
container.remove();
if(!config.startAudioMuted ||
config.startAudioMuted > APP.members.size())
UIUtil.playSoundNotification('userLeft');
VideoLayout.resizeThumbnails();
}

View File

@ -117,6 +117,12 @@ var Members = {
},
removeListener: function (type, listener) {
eventEmitter.removeListener(type, listener);
},
size: function () {
return Object.keys(members).length;
},
getMembers: function () {
return members;
}
};