mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-22 19:12:33 -05:00
[README] Add new seek parameter to JSON API documentation
This commit is contained in:
parent
6e5d6791ff
commit
779e5b8617
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user