Skip to content

REMOTE control "Spotify Connect Web" by Android Widget

rojait00 edited this page Dec 22, 2016 · 5 revisions

Recommended Apps:

Text-based widget: https://goo.gl/L6cr85

Icon-based widget:https://goo.gl/QvMw3H

Commands:

GET:

PLAY = "http://[device_name]:4000/api/playback/play";

PAUSE = "http://[device_name]:4000/api/playback/pause";

NEXT = "http://[device_name]:4000/api/playback/next";

PREV = "http://[device_name]:4000/api/playback/prev";

POST:

VOL = "http://[device_name]:4000/api/playback/volume";

  • value:1 //Mute

  • value:65535 //Max Volume

Get Information:

STATUS = "http://[device_name]:4000/api/info/status";

received data = "{

"active": true,

"logged_in": true,

"playing": false,

"repeat": false,

"shuffle": true

}"

META = "http://[device_name]:4000/api/info/metadata";

received data = "{

"album_name": "Bills",

"album_uri": "spotify:album:6ItEjseW8RWuVTDLd1vcnp",

"artist_name": "Lunchmoney Lewis",

"artist_uri": "spotify:artist:2iUbk5KhZYZt4CRvWbwb7S",

"context_uri": "spotify:user:spotify:playlist:37i9dQZF1Cz35eQTh2fHR0",

"cover_uri": "spotify:image:6530aa2cb1109c3b1dfd3a7cf98c39dd71495351",

"data0": "Deine Top Tracks aus 2016",

"duration": 204600,

"track_name": "Bills",

"track_uri": "spotify:track:7rlCeTnjn0plPZkVAcctPZ",

"volume": 65535

}"