detecting changes, needs to be hooked up to fix issue #41

This commit is contained in:
Philipp Hancke 2014-02-26 15:16:00 +01:00
parent cf1dbfbe66
commit 5da1ff3597
1 changed files with 5 additions and 0 deletions

5
app.js
View File

@ -483,6 +483,11 @@ $(document).bind('presence.muc', function (event, jid, info, pres) {
$(pres).find('>media[xmlns="http://estos.de/ns/mjs"]>source').each(function (idx, ssrc) { $(pres).find('>media[xmlns="http://estos.de/ns/mjs"]>source').each(function (idx, ssrc) {
//console.log(jid, 'assoc ssrc', ssrc.getAttribute('type'), ssrc.getAttribute('ssrc')); //console.log(jid, 'assoc ssrc', ssrc.getAttribute('type'), ssrc.getAttribute('ssrc'));
ssrc2jid[ssrc.getAttribute('ssrc')] = jid; ssrc2jid[ssrc.getAttribute('ssrc')] = jid;
// might need to update the direction if participant just went from sendrecv to recvonly
if (ssrc.getAttribute('type') == 'video') {
console.warn('video direction for', jid, ssrc.getAttribute('direction'));
}
}); });
if (info.displayName) { if (info.displayName) {