From 97d7c9014855449fe04162308feac66a35e007ea Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 8 Aug 2011 00:11:01 +0200 Subject: Initial commit. app.py - WSGI application and handlers. config.py - Config helper class. directory.py - Directory and file helper classes. events.py - zeromq event publisher and subscriber. recode.py - Codecs and stuff static/ - Web interface --- static/audio.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 static/audio.js (limited to 'static/audio.js') diff --git a/static/audio.js b/static/audio.js new file mode 100644 index 0000000..6eaec56 --- /dev/null +++ b/static/audio.js @@ -0,0 +1,19 @@ +function Audio() { + this.audio = document.getElementById('audio'); + + this.set_src = function(src) { + this.audio.setAttribute('src', src); + } + + this.play = function() { + this.audio.play(); + } + + this.pause = function() { + this.audio.pause(); + } + + this.stop = function() { + this.audio.stop(); + } +} -- cgit v1.2.3