Difference between revisions of "API/Player Protocol/getSeekPosition"
From ickStream Wiki
(Created page with "Get current seek position within the current track. This is typically used by a Controller to display a progress bar which indicates how large amount of the track that has bee...") |
(Renamed playlistPost to playbackQueuePos) |
||
(2 intermediate revisions by one user not shown) | |||
Line 12: | Line 12: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | '''Specific information:''' | ||
+ | * Note that the '''params''' parameter is optional since this request doesn't have any mandatory parameters. | ||
'''Response:''' | '''Response:''' | ||
Line 19: | Line 22: | ||
"id": < The request identity >, | "id": < The request identity >, | ||
"result": { | "result": { | ||
− | " | + | "playbackQueuePos": < The playback queue position of the current track > |
"seekPos": < Position within the track, seconds from start of track as a float > | "seekPos": < Position within the track, seconds from start of track as a float > | ||
} | } | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | [[Category:Player Protocol]] |
Latest revision as of 07:42, 28 June 2013
Get current seek position within the current track. This is typically used by a Controller to display a progress bar which indicates how large amount of the track that has been played.
Request:
{ "jsonrpc": 2.0, "id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >, "method": "getSeekPosition", "params": { } }
Specific information:
- Note that the params parameter is optional since this request doesn't have any mandatory parameters.
Response:
{ "jsonrpc": 2.0, "id": < The request identity >, "result": { "playbackQueuePos": < The playback queue position of the current track > "seekPos": < Position within the track, seconds from start of track as a float > } }