repo: janusweb action: commit revision: path_from: revision_from: e7b9299b1baab6f6fe6f47cface7def579902a12: path_to: revision_to:
commit e7b9299b1baab6f6fe6f47cface7def579902a12 Author: James BaicoianuDate: Sat Dec 3 12:27:03 2016 -0800 Added sound.seek() function diff --git a/scripts/sound.js b/scripts/sound.js
--- a/scripts/sound.js
+++ b/scripts/sound.js
@@ -78,6 +78,10 @@ elation.require(['janusweb.janusbase'], function() {
this.start = function() {
this.play();
}
+ this.seek = function(time) {
+ this.audio.seek(currentTime);
+
+ }
this.stop = function() {
if (this.audio && this.audio.isPlaying) {
this.audio.stop();
-----END OF PAGE-----