hide participants if they go recvonly, almost done with issue #41
This commit is contained in:
parent
8ebe2d9468
commit
472a532cc7
10
app.js
10
app.js
|
@ -489,7 +489,15 @@ $(document).bind('presence.muc', function (event, jid, info, pres) {
|
||||||
|
|
||||||
// might need to update the direction if participant just went from sendrecv to recvonly
|
// might need to update the direction if participant just went from sendrecv to recvonly
|
||||||
if (ssrc.getAttribute('type') == 'video') {
|
if (ssrc.getAttribute('type') == 'video') {
|
||||||
console.warn('video direction for', jid, ssrc.getAttribute('direction'));
|
var el = $('#participant_' + Strophe.getResourceFromJid(jid) + '>video');
|
||||||
|
switch(ssrc.getAttribute('direction')) {
|
||||||
|
case 'sendrecv':
|
||||||
|
el.show();
|
||||||
|
break;
|
||||||
|
case 'recvonly':
|
||||||
|
el.hide();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue