ocarina/html/controls.js
Bryan Schumaker 8ff437a682 web server: Load songs from the library browser
This patch will load a song clicked on in the original library browser.
This is a better action than trying to play the song through html5!
2011-05-01 11:05:55 -04:00

42 lines
405 B
JavaScript

// Bryan Schumaker (12 / 27 / 2010)
function control(action)
{
send_request("controls.py?a=" + action);
}
function play()
{
control("play");
}
function load_id(id)
{
control("load&id="+id);
}
function pause()
{
control("pause");
}
function stop()
{
control("stop");
}
function next()
{
control("next");
}
function forward()
{
control("forward");
}
function rewind()
{
control("rewind");
}