repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 770fcb67590a7861b621e0f3131f6c4cd2051f1c:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 770fcb67590a7861b621e0f3131f6c4cd2051f1c
Author: James Baicoianu 
Date:   Wed Oct 21 22:55:06 2020 -0700

    Add remoteplayer.setVolume()

diff --git a/scripts/remoteplayer.js b/scripts/remoteplayer.js
index d02241b074851e5d3ff8a0caa9084d934205cd0c..
index ..acf9d857e1127d7eb794fd1ee698af1050fdcddb 100644
--- a/scripts/remoteplayer.js
+++ b/scripts/remoteplayer.js
@@ -150,6 +150,11 @@ elation.component.add('engine.things.remoteplayer', function() {
       });
     }
   }
+  this.setVolume = function(volume) {
+    if (this.mouth) {
+      this.mouth.audio.gain.gain.value = volume;
+    }
+  }
 }, elation.engine.things.janusghost);

 });

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