|
@@ -11,6 +11,12 @@ var VideoLayout = (function (my) {
|
11
|
11
|
};
|
12
|
12
|
my.connectionIndicators = {};
|
13
|
13
|
|
|
14
|
+ my.isInLastN = function(resource) {
|
|
15
|
+ return lastNCount < 0 // lastN is disabled, return true
|
|
16
|
+ || (lastNCount > 0 && lastNEndpointsCache.length == 0) // lastNEndpoints cache not built yet, return true
|
|
17
|
+ || (lastNEndpointsCache && lastNEndpointsCache.indexOf(resource) !== -1);
|
|
18
|
+ };
|
|
19
|
+
|
14
|
20
|
my.changeLocalAudio = function(stream) {
|
15
|
21
|
connection.jingle.localAudio = stream;
|
16
|
22
|
|
|
@@ -597,14 +603,17 @@ var VideoLayout = (function (my) {
|
597
|
603
|
peerContainer.show();
|
598
|
604
|
}
|
599
|
605
|
|
600
|
|
- // TODO(gp) add proper avatars handling.
|
601
|
606
|
if (state == 'show')
|
602
|
607
|
{
|
603
|
|
- peerContainer.css('-webkit-filter', '');
|
|
608
|
+ // peerContainer.css('-webkit-filter', '');
|
|
609
|
+ var jid = connection.emuc.findJidFromResource(resourceJid);
|
|
610
|
+ Avatar.showUserAvatar(jid, false);
|
604
|
611
|
}
|
605
|
612
|
else // if (state == 'avatar')
|
606
|
613
|
{
|
607
|
|
- peerContainer.css('-webkit-filter', 'grayscale(100%)');
|
|
614
|
+ // peerContainer.css('-webkit-filter', 'grayscale(100%)');
|
|
615
|
+ var jid = connection.emuc.findJidFromResource(resourceJid);
|
|
616
|
+ Avatar.showUserAvatar(jid, true);
|
608
|
617
|
}
|
609
|
618
|
}
|
610
|
619
|
else if (peerContainer.is(':visible') && isHide)
|