24 lines
440 B
Python
24 lines
440 B
Python
# Bryan Schumaker (11/18/2010)
|
|
|
|
import libsaria.audio
|
|
import libsaria.sources
|
|
|
|
play = libsaria.audio.play
|
|
pause = libsaria.audio.pause
|
|
stop = libsaria.audio.stop
|
|
next = libsaria.sources.plist_next
|
|
|
|
|
|
def to_html(wfile, args):
|
|
action = args["a"]
|
|
ret = False
|
|
if action == "play":
|
|
ret = play()
|
|
elif action == "pause":
|
|
ret = pause()
|
|
elif action == "stop":
|
|
ret = stop()
|
|
elif action == "next":
|
|
ret = next()
|
|
wfile.write(str(ret))
|