summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-08-08 19:15:49 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-08-08 19:15:49 +0200
commit6ee205018af2f5d13f2606f16d82564d5877b589 (patch)
tree49875a2442cfb7666ec2c15ac6d82b36c4b7e7a8 /static
parent97d7c9014855449fe04162308feac66a35e007ea (diff)
Implemented session, send play notification.
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']);
}