repo: janusweb action: commit revision: path_from: revision_from: 770fcb67590a7861b621e0f3131f6c4cd2051f1c: path_to: revision_to:
commit 770fcb67590a7861b621e0f3131f6c4cd2051f1c Author: James BaicoianuDate: Wed Oct 21 22:55:06 2020 -0700 Add remoteplayer.setVolume() diff --git a/scripts/remoteplayer.js b/scripts/remoteplayer.js
--- 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-----