[jsonapi] Support starting playback from position in queue/items/add
This commit is contained in:
parent
4c2f178aa0
commit
a3f2551eea
|
@ -1995,6 +1995,9 @@ jsonapi_reply_queue_tracks_add(struct httpd_request *hreq)
|
|||
param = evhttp_find_header(hreq->query, "playback");
|
||||
if (param && strcmp(param, "start") == 0)
|
||||
{
|
||||
if ((param = evhttp_find_header(hreq->query, "playback_from_position")))
|
||||
play_item_at_position(param);
|
||||
else
|
||||
player_playback_start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue