2011-05-15 13:49:02 -04:00
|
|
|
# Bryan Schumaker (5 / 15 / 2011)
|
|
|
|
|
2011-05-15 15:39:14 -04:00
|
|
|
from libsaria import sources
|
2011-05-15 13:49:02 -04:00
|
|
|
from libsaria import controls
|
|
|
|
|
2011-05-15 15:39:14 -04:00
|
|
|
def play(write):
|
2011-05-15 13:49:02 -04:00
|
|
|
controls.play()
|
|
|
|
|
2011-05-15 15:39:14 -04:00
|
|
|
def pause(write):
|
2011-05-15 13:49:02 -04:00
|
|
|
controls.pause()
|
2011-05-15 15:39:14 -04:00
|
|
|
|
|
|
|
def play_id(write, id):
|
|
|
|
sources.play_id(long(id[0]))
|
2011-05-15 13:49:02 -04:00
|
|
|
|
|
|
|
rpc = {
|
|
|
|
"play.html":(play, "html"),
|
|
|
|
"pause.html":(pause, "html"),
|
2011-05-15 15:39:14 -04:00
|
|
|
"play_id":(play_id, "html"),
|
2011-05-15 13:49:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
docs = {
|
|
|
|
"RPC":rpc,
|
|
|
|
}
|