You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added HTTP endpoint to change the playback volume.
Rules applied:
- if single device is connected, then change the device volume
- If multiple devices connected, then change only device that active
- If no device is connected to player, then error is returned
Written tests.
Added docs.
Small refactoring of classes.
Implementation of #66
Add endpoint to change the volume of the player
Endpoint info:
PUT /player/volume
Query parameters:
volume_percent - an integer from 0 to 100, when a 0 indicating that device is muted and 100 max volume
Response:
204 No Content - command received
400 Bad Request - invalid request received, that contains a reason code.
Possible error codes:
The text was updated successfully, but these errors were encountered: