Add REST API for remote playback control#5797
Conversation
Adds a local-network REST API (NanoHTTPD) to control playback, manage the queue, and play YouTube playlists. Includes OpenAPI docs, settings UI, basic auth, and unit tests.
|
Hi @yuliskov , best regards |
|
Got it. Thanks |
|
ah damn didnt see this before i ended up making my own rest api adition to smart tube Ill probably clean up my branch and open a pr,i have a few extra changes and features i added for better control/discovery |
|
@akshaynexus @Gonzoe79 i was literally about to implement this as well since the lounge api is not very reliable, only thing missing here for me is a "play next" endpoint since the queue on puts the item at the end of the queue |
Do check the pr I opened and see if that fits most of your requirements ,if not do comment and I'll add it to the pr |
|
@yuliskov theres another PR from @akshaynexus (#5896) that go in the same direction. maybe we should unify things... but i think we would need some feedback from you. |
|
I can't estimate a date yet. I'm working on higher-priority tasks right now. |
Summary
Adds an opt-in REST API that allows external clients to control playback, manage the queue, and browse recommendations remotely.
Endpoints
POST /api/v1/playback/play|pause|toggle|next|previous|stop|pipPOST /api/v1/playback/seek?positionMs={ms}GET /api/v1/playbackstateGET /api/v1/queuePOST /api/v1/queue/items?videoUrl={url}&shuffle={bool}GET /api/v1/recommendationsSecurity
API Documentation
See
openapi.yamlin the ./docs.Notes
gsondependency for JSON serialization