* VRFS-2658 - adding commints

This commit is contained in:
Seth Call 2015-01-19 10:23:51 -06:00
parent 48b2f5b965
commit 6880aec9ef
1 changed files with 3 additions and 0 deletions

View File

@ -1254,6 +1254,7 @@
if (mixer && oppositeMixer) {
myTrack = (mixer.group_id === ChannelGroupIds.AudioInputMusicGroup);
if(!myTrack) {
// it only makes sense to track 'audio established' for tracks that don't belong to you
sessionModel.setAudioEstablished(participant.client_id, true);
}
@ -1346,6 +1347,7 @@
if (mixer && oppositeMixer) {
if(!myTrack) {
// it only makes sense to track 'audio established' for tracks that don't belong to you
sessionModel.setAudioEstablished(clientId, true);
}
var participant = (sessionModel.getParticipant(clientId) || {name:'unknown'}).name;
@ -1378,6 +1380,7 @@
// if 5 seconds have gone by and no mixer, then we tell the server failed to establish audio
else if(lookingForMixersCount == 10) {
if(!myTrack) {
// it only makes sense to track 'audio established' for tracks that don't belong to you
sessionModel.setAudioEstablished(clientId, false);
}
}