From 5da1ff35974a15c28ea319356fe6f10b3cbb479b Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Wed, 26 Feb 2014 15:16:00 +0100 Subject: [PATCH] detecting changes, needs to be hooked up to fix issue #41 --- app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.js b/app.js index fe938d13c..a9c008fa7 100644 --- a/app.js +++ b/app.js @@ -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) { //console.log(jid, 'assoc ssrc', ssrc.getAttribute('type'), ssrc.getAttribute('ssrc')); 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) {