mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-25 21:05:47 +03:00
[PR #101] [MERGED] api: allow changing (not just setting) states #207
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/101
Author: @aykevl
Created: 9/24/2024
Status: ✅ Merged
Merged: 9/27/2024
Merged by: @devgianlu
Base:
master← Head:api-change-state📝 Commits (3)
46ef929feat: support playpause endpoint that emulates the "play/pause" button54d75b8feat: support relative volume changes in the API929d78bfix: use correct volume range (0...100) in /status📊 Changes
4 files changed (+55 additions, -13 deletions)
View changed files
📝
api-spec.yml(+10 -1)📝
cmd/daemon/api_server.go(+17 -6)📝
cmd/daemon/controls.go(+7 -1)📝
cmd/daemon/player.go(+21 -5)📄 Description
This PR adds a play/pause command, and relative volume changes to the API. I plan to use these in Home Assistant through the RESTful Command integration.
Sadly Home Assistant doesn't support custom players yet in which case we could support whatever protocol it uses in go-librespot, so I'll just use REST commands as a poor man's media player in Home Assistant.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.