repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 4eb5f7447d20f17fff3a5bbd0f2ffb8537cf525b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 4eb5f7447d20f17fff3a5bbd0f2ffb8537cf525b
Author: James Baicoianu 
Date:   Sat Apr 16 13:01:08 2016 -0700

    Pass VOIP data to remoteplayer objects when available

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 107b97dee1afe9a10159efb3c116599155212321..
index ..14608f8edc49e4cdd176389150be53f150901fad 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -273,6 +273,10 @@ console.log('new player!', userId);
         }
       }

+      if (data.position.speaking && data.position.audio) {
+        remote.speak(data.position.audio);
+      }
+
       //remote.set('position', movepos, true);
       remote.properties.position.fromArray(movepos);
       remote.objects.dynamics.updateState();

-----END OF PAGE-----