summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/player.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/player.js b/static/player.js
index 70b5a6d..ce75249 100644
--- a/static/player.js
+++ b/static/player.js
@@ -153,6 +153,11 @@ function event_handler(event) {
if(a)
a.setAttribute('class', 'file file-' + data['type']);
break;
+ case 'play':
+ log('[play] ' + data['path']);
+ change_url(data['path']);
+ audio.play();
+ break;
default:
log('[event] unknown type: ' + data['type']);
}