mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
Use seconds for seek, make TrackId optional
This commit is contained in:
parent
0853c7c701
commit
880ed00604
3 changed files with 15 additions and 15 deletions
|
@ -387,8 +387,8 @@ void PcmStream::control(const jsonrpcpp::Request& request, const StreamControl::
|
|||
std::string command = request.params().get("command");
|
||||
if (command == "SetPosition")
|
||||
{
|
||||
if (!request.params().has("params") || !request.params().get("params").contains("Position") || !request.params().get("params").contains("TrackId"))
|
||||
throw SnapException("SetPosition requires parameters 'Position' and 'TrackId'");
|
||||
if (!request.params().has("params") || !request.params().get("params").contains("Position"))
|
||||
throw SnapException("SetPosition requires parameters 'Position' and optionally 'TrackId'");
|
||||
if (!properties_.can_seek)
|
||||
throw SnapException("CanSeek is false");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue