Recognizes focus user. Adds missing semicolons.
This commit is contained in:
parent
3c96c91ca8
commit
1729f7e17e
9
app.js
9
app.js
|
@ -765,17 +765,18 @@ $(document).bind('joined.muc', function (event, jid, info) {
|
|||
|
||||
$(document).bind('entered.muc', function (event, jid, info, pres) {
|
||||
console.log('entered', jid, info);
|
||||
messageHandler.notify(info.displayName || 'Somebody',
|
||||
'connected',
|
||||
'connected');
|
||||
|
||||
if (info.isFocus)
|
||||
{
|
||||
focusJid = jid;
|
||||
console.info("Ignore focus: " + jid +", real JID: " + info.jid);
|
||||
messageHandler.notify('Focus', 'connected', 'connected');
|
||||
return;
|
||||
}
|
||||
|
||||
messageHandler.notify(info.displayName || 'Somebody',
|
||||
'connected',
|
||||
'connected');
|
||||
|
||||
// Add Peer's container
|
||||
var id = $(pres).find('>userID').text();
|
||||
var email = $(pres).find('>email');
|
||||
|
|
|
@ -23,7 +23,7 @@ var VideoLayout = (function (my) {
|
|||
my.changeLocalStream = function (stream) {
|
||||
connection.jingle.localAudio = stream;
|
||||
VideoLayout.changeLocalVideo(stream, true);
|
||||
}
|
||||
};
|
||||
|
||||
my.changeLocalAudio = function(stream) {
|
||||
connection.jingle.localAudio = stream;
|
||||
|
|
Loading…
Reference in New Issue