-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft protocol and needs.txt
executable file
·91 lines (65 loc) · 2.1 KB
/
draft protocol and needs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Mopidiy Webservices Protocol
- events
- nested playlists
- coverart
- playlist edit
Optional
- people
- 'artistpedia'
- toplists artist
----
Protocol: json over websockets (REST?)
Events to mopidy (client generated):
------------------------------------
SetPlay
Toggles play status. Arguments: none, true or false (true=play, none toggles)
Previoustrack/nexttreck
Argument: none
Loadtracks:
Loads tracks into the current playlist. Arguments: an uri of a playlist, album, search, artist. Or a custom list of track-uris
Playuri
Plays track in playlist, continues to next track if there is one. Argument: track-uri
Seek
Goto a position in the current track. Argument: time (in seconds)
SetVolume
Argument: 0-100
SetMute
Toggles mute status. Arguments: none, true or false (true=mute, none toggles)
Getartist/getplaylist/getalbum
Returns a list of tracks, including names, etc. Argument: uri
Getplaylists
Returns a nested list of playlists of the user, with names and uris, playlist-folders
Getservicedata
Returns data of the current service (spotify, rdio, whatever). Returns: serviceid, service name, logo, username
Getcurrentplaylist
Returns a list of the currently loaded playlist (complete)
Getcurrentplaylisturi
Returns an uri of the currently loaded playlist, or none if its a custom list
Getcurrenttrack
Returns trackdata of current track
Getstatus
Returns array of statusses of play, mute, currenttrack, position, volume, shuffle, repeat
Getfavoritesongs
Returns a list of starred songs
Getfavoritealbums
Returns a list of starred albums (needs workaround for spotify)
Getfavoriteartists
Returns a list of starred artists (needs workaround for spotify)
Getnewalbums
Returns a list of what's news albums
Setshuffle/setrepeat
Toggles shuffle/repeat status. Arguments: none, true or false (true=on, none toggles)
Search
Returns a list of tracks. Arguments: keywords, method (none=all, album, artist, track)
Events from Mopidy to client:
-----------------------------
Currenttrackupdated
Volumeupdated
Playstatusupdated
PlaylistUpdated
MessageUser
SearchResults
AlbumResults
ArtistResults
PLaylistResults
UserPlaylistsResults