From 6ee205018af2f5d13f2606f16d82564d5877b589 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 8 Aug 2011 19:15:49 +0200 Subject: Implemented session, send play notification. --- static/player.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'static') 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']); } -- cgit v1.2.3