From 779e5b8617065f9b392629a6221a60c4e34fd704 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 22 Sep 2019 10:05:51 +0200 Subject: [PATCH] [README] Add new seek parameter to JSON API documentation --- README_JSON_API.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README_JSON_API.md b/README_JSON_API.md index 3d68e317..316c47f7 100644 --- a/README_JSON_API.md +++ b/README_JSON_API.md @@ -288,6 +288,7 @@ PUT /api/player/seek | Parameter | Value | | --------------- | ----------------------------------------------------------- | | position_ms | The new position in milliseconds to seek to | +| seek_ms | A relative amount of milliseconds to seek to | **Response** @@ -296,10 +297,17 @@ On success returns the HTTP `204 No Content` success status response code. **Example** +Seek to position: + ```shell curl -X PUT "http://localhost:3689/api/player/seek?position_ms=2000" ``` +Relative seeking (skip 30 seconds backwards): + +```shell +curl -X PUT "http://localhost:3689/api/player/seek?seek_ms=-30000" +``` ## Outputs / Speakers