2010-12-27 19:00:27 -05:00
|
|
|
// Bryan Schumaker (12 / 27 / 2010)
|
|
|
|
|
|
|
|
function control(action)
|
|
|
|
{
|
2011-05-15 15:39:14 -04:00
|
|
|
send_request("RPC/" + action);
|
2010-12-27 19:00:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function play()
|
|
|
|
{
|
|
|
|
control("play");
|
|
|
|
}
|
|
|
|
|
2011-02-03 08:34:12 -05:00
|
|
|
function load_id(id)
|
|
|
|
{
|
|
|
|
control("load&id="+id);
|
|
|
|
}
|
|
|
|
|
2010-12-27 19:00:27 -05:00
|
|
|
function pause()
|
|
|
|
{
|
|
|
|
control("pause");
|
|
|
|
}
|
|
|
|
|
|
|
|
function stop()
|
|
|
|
{
|
|
|
|
control("stop");
|
|
|
|
}
|
|
|
|
|
|
|
|
function next()
|
|
|
|
{
|
|
|
|
control("next");
|
|
|
|
}
|
2010-12-27 22:07:24 -05:00
|
|
|
|
|
|
|
function forward()
|
|
|
|
{
|
|
|
|
control("forward");
|
|
|
|
}
|
|
|
|
|
|
|
|
function rewind()
|
|
|
|
{
|
|
|
|
control("rewind");
|
|
|
|
}
|
2011-05-15 15:39:14 -04:00
|
|
|
|
|
|
|
function play_id(id)
|
|
|
|
{
|
|
|
|
control("play_id/" + id)
|
|
|
|
}
|