diff --git a/html/controls.html b/html/controls.html index f69596ba..37c26612 100644 --- a/html/controls.html +++ b/html/controls.html @@ -75,6 +75,9 @@ function stop2() + + + diff --git a/html/controls.js b/html/controls.js index 24c5fa9d..626cc65b 100644 --- a/html/controls.js +++ b/html/controls.js @@ -24,3 +24,13 @@ function next() { control("next"); } + +function forward() +{ + control("forward"); +} + +function rewind() +{ + control("rewind"); +} diff --git a/html/controls.py b/html/controls.py index 4999e442..b0561b69 100644 --- a/html/controls.py +++ b/html/controls.py @@ -11,7 +11,10 @@ pause = controls.pause stop = controls.stop next = controls.next attrs = libsaria.sources.get_attrs + playing = controls.playing +forward = controls.seek_forward +rewind = controls.seek_backward def to_html(wfile, args): action = args["a"] @@ -24,6 +27,10 @@ def to_html(wfile, args): ret = stop() elif action == "next": ret = next() + elif action == "forward": + ret = forward() + elif action == "rewind": + ret = rewind() elif action == "version": ret = ocarina.__vers__ elif action == "uptime": diff --git a/html/images/forward.png b/html/images/forward.png new file mode 100644 index 00000000..c1d49403 Binary files /dev/null and b/html/images/forward.png differ diff --git a/html/images/rewind.png b/html/images/rewind.png new file mode 100644 index 00000000..f448b2eb Binary files /dev/null and b/html/images/rewind.png differ