ocarina/html/controls.js
Bryan Schumaker c17126553f web seeking
This patch adds the ability to seek forwards or backwards in a song
through the web controls.
2010-12-27 22:07:24 -05:00

37 lines
354 B
JavaScript

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