2017-02-09 15:46:05 +01:00
|
|
|
/* This file is part of Clementine.
|
|
|
|
Copyright 2017, David Sansome <me@davidsansome.com>
|
|
|
|
Copyright 2017, Andreas Muttscheller <asfa194@gmail.com>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-11-27 13:05:53 +01:00
|
|
|
// Note: this file is licensed under the Apache License instead of GPL, so
|
2017-02-09 15:46:05 +01:00
|
|
|
// 3rd party applications or libraries can use another license besides GPL.
|
|
|
|
|
2019-01-27 01:15:43 +01:00
|
|
|
syntax = "proto2";
|
|
|
|
|
2013-01-03 21:40:47 +01:00
|
|
|
package pb.remote;
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// The supported message types
|
2013-01-03 21:40:47 +01:00
|
|
|
enum MsgType {
|
2013-01-14 19:07:34 +01:00
|
|
|
UNKNOWN = 0;
|
2013-01-03 21:40:47 +01:00
|
|
|
// Messages generally send from client to server
|
2013-01-14 19:07:34 +01:00
|
|
|
CONNECT = 1;
|
|
|
|
REQUEST_PLAYLISTS = 3;
|
|
|
|
REQUEST_PLAYLIST_SONGS = 4;
|
|
|
|
CHANGE_SONG = 5;
|
|
|
|
SET_VOLUME = 6;
|
2013-01-23 20:02:12 +01:00
|
|
|
SET_TRACK_POSITION = 7;
|
2013-04-13 11:57:05 +02:00
|
|
|
INSERT_URLS = 8;
|
|
|
|
REMOVE_SONGS = 9;
|
2013-04-20 16:11:57 +02:00
|
|
|
OPEN_PLAYLIST = 10;
|
|
|
|
CLOSE_PLAYLIST = 11;
|
2020-11-27 13:05:53 +01:00
|
|
|
UPDATE_PLAYLIST = 60;
|
2013-07-10 13:24:23 +02:00
|
|
|
GET_LYRICS = 14;
|
2013-07-12 12:31:27 +02:00
|
|
|
DOWNLOAD_SONGS = 15;
|
2013-07-23 16:59:50 +02:00
|
|
|
SONG_OFFER_RESPONSE = 16;
|
2013-05-07 17:57:53 +02:00
|
|
|
// Lastfm
|
|
|
|
LOVE = 12;
|
|
|
|
BAN = 13;
|
2013-07-20 19:38:37 +02:00
|
|
|
STOP_AFTER = 17;
|
2013-08-01 18:13:14 +02:00
|
|
|
GET_LIBRARY = 18;
|
2013-08-15 20:52:12 +02:00
|
|
|
RATE_SONG = 19;
|
2014-10-21 17:59:02 +02:00
|
|
|
GLOBAL_SEARCH = 100;
|
2020-11-27 13:05:53 +01:00
|
|
|
REQUEST_SAVED_RADIOS = 110;
|
|
|
|
// access Files from remote control
|
|
|
|
REQUEST_FILES = 200;
|
|
|
|
APPEND_FILES = 201;
|
2013-01-15 13:05:43 +01:00
|
|
|
|
2013-01-03 21:40:47 +01:00
|
|
|
// Messages send by both
|
2013-01-23 20:02:12 +01:00
|
|
|
DISCONNECT = 2;
|
2013-01-03 21:40:47 +01:00
|
|
|
PLAY = 20;
|
|
|
|
PLAYPAUSE = 21;
|
|
|
|
PAUSE = 22;
|
|
|
|
STOP = 23;
|
|
|
|
NEXT = 24;
|
2013-01-14 19:07:34 +01:00
|
|
|
PREVIOUS = 25;
|
|
|
|
SHUFFLE_PLAYLIST = 26;
|
|
|
|
// Messages that contain the repeat or random mode
|
|
|
|
// Either set by client or clementine
|
|
|
|
REPEAT = 27;
|
2013-01-15 14:43:02 +01:00
|
|
|
SHUFFLE = 28;
|
2013-01-15 13:05:43 +01:00
|
|
|
|
2013-01-03 21:40:47 +01:00
|
|
|
// Messages send from server to client
|
2013-01-15 13:05:43 +01:00
|
|
|
INFO = 40;
|
|
|
|
CURRENT_METAINFO = 41;
|
2013-01-03 21:40:47 +01:00
|
|
|
PLAYLISTS = 42;
|
|
|
|
PLAYLIST_SONGS = 43;
|
2013-01-14 19:07:34 +01:00
|
|
|
ENGINE_STATE_CHANGED = 44;
|
|
|
|
KEEP_ALIVE = 45;
|
2013-01-22 22:02:16 +01:00
|
|
|
UPDATE_TRACK_POSITION = 46;
|
2013-03-20 15:57:22 +01:00
|
|
|
ACTIVE_PLAYLIST_CHANGED = 47;
|
2013-03-21 16:14:13 +01:00
|
|
|
FIRST_DATA_SENT_COMPLETE = 48;
|
2013-07-10 13:24:23 +02:00
|
|
|
LYRICS = 49;
|
2013-07-12 12:31:27 +02:00
|
|
|
SONG_FILE_CHUNK = 50;
|
2013-07-27 14:13:02 +02:00
|
|
|
DOWNLOAD_QUEUE_EMPTY = 51;
|
2013-08-01 18:13:14 +02:00
|
|
|
LIBRARY_CHUNK = 52;
|
2014-05-10 14:53:38 +02:00
|
|
|
DOWNLOAD_TOTAL_SIZE = 53;
|
2014-10-21 17:59:02 +02:00
|
|
|
GLOBAL_SEARCH_RESULT = 54;
|
2014-11-13 22:31:49 +01:00
|
|
|
TRANSCODING_FILES = 55;
|
2015-05-31 12:08:33 +02:00
|
|
|
GLOBAL_SEARCH_STATUS = 56;
|
2020-11-27 13:05:53 +01:00
|
|
|
// access Files from remote control
|
|
|
|
LIST_FILES = 202;
|
2013-01-03 21:40:47 +01:00
|
|
|
}
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// Valid Engine states
|
2013-01-03 21:40:47 +01:00
|
|
|
enum EngineState {
|
|
|
|
Empty = 0;
|
|
|
|
Idle = 1;
|
|
|
|
Playing = 2;
|
|
|
|
Paused = 3;
|
|
|
|
}
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// Song Metadata
|
2013-01-03 21:40:47 +01:00
|
|
|
message SongMetadata {
|
2015-06-13 16:00:15 +02:00
|
|
|
enum Type {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
ASF = 1;
|
|
|
|
FLAC = 2;
|
|
|
|
MP4 = 3;
|
|
|
|
MPC = 4;
|
|
|
|
MPEG = 5;
|
|
|
|
OGGFLAC = 6;
|
|
|
|
OGGSPEEX = 7;
|
|
|
|
OGGVORBIS = 8;
|
|
|
|
AIFF = 9;
|
|
|
|
WAV = 10;
|
|
|
|
TRUEAUDIO = 11;
|
|
|
|
CDDA = 12;
|
|
|
|
OGGOPUS = 13;
|
2018-05-01 19:29:47 +02:00
|
|
|
WAVPACK = 14;
|
2018-06-09 08:58:03 +02:00
|
|
|
SPC = 15;
|
2018-06-18 15:26:11 +02:00
|
|
|
VGM = 16;
|
2019-02-15 01:33:33 +01:00
|
|
|
APE = 17;
|
2015-06-13 16:00:15 +02:00
|
|
|
STREAM = 99;
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:05:53 +01:00
|
|
|
optional int32 id = 1; // unique id of the song
|
|
|
|
optional int32 index = 2; // Index of the current row of the active playlist
|
2013-01-03 21:40:47 +01:00
|
|
|
optional string title = 3;
|
|
|
|
optional string album = 4;
|
|
|
|
optional string artist = 5;
|
|
|
|
optional string albumartist = 6;
|
|
|
|
optional int32 track = 7;
|
|
|
|
optional int32 disc = 8;
|
|
|
|
optional string pretty_year = 9;
|
|
|
|
optional string genre = 10;
|
|
|
|
optional int32 playcount = 11;
|
|
|
|
optional string pretty_length = 12;
|
2013-01-12 17:22:40 +01:00
|
|
|
optional bytes art = 13;
|
2013-01-22 22:02:16 +01:00
|
|
|
optional int32 length = 14;
|
2013-07-12 12:31:27 +02:00
|
|
|
optional bool is_local = 15;
|
|
|
|
optional string filename = 16;
|
|
|
|
optional int32 file_size = 17;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional float rating = 18; // 0 (0 stars) to 1 (5 stars)
|
2015-04-24 15:35:18 +02:00
|
|
|
optional string url = 19;
|
2015-06-13 16:00:15 +02:00
|
|
|
optional string art_automatic = 20;
|
|
|
|
optional string art_manual = 21;
|
|
|
|
optional Type type = 22;
|
2013-01-03 21:40:47 +01:00
|
|
|
}
|
|
|
|
|
2019-08-22 05:43:16 +02:00
|
|
|
// Playlist information
|
2013-01-03 21:40:47 +01:00
|
|
|
message Playlist {
|
|
|
|
optional int32 id = 1;
|
|
|
|
optional string name = 2;
|
|
|
|
optional int32 item_count = 3;
|
|
|
|
optional bool active = 4;
|
2013-04-16 13:57:04 +02:00
|
|
|
optional bool closed = 5;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional bool favorite = 6;
|
2013-01-03 21:40:47 +01:00
|
|
|
}
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// Valid Repeatmodes
|
|
|
|
enum RepeatMode {
|
|
|
|
Repeat_Off = 0;
|
|
|
|
Repeat_Track = 1;
|
|
|
|
Repeat_Album = 2;
|
|
|
|
Repeat_Playlist = 3;
|
2015-05-22 15:11:58 +02:00
|
|
|
Repeat_OneByOne = 4;
|
2015-06-15 22:27:40 +02:00
|
|
|
Repeat_Intro = 5;
|
2013-01-14 19:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Valid Shuffle modes
|
|
|
|
enum ShuffleMode {
|
|
|
|
Shuffle_Off = 0;
|
|
|
|
Shuffle_All = 1;
|
|
|
|
Shuffle_InsideAlbum = 2;
|
|
|
|
Shuffle_Albums = 3;
|
|
|
|
}
|
|
|
|
|
2013-04-16 13:57:04 +02:00
|
|
|
message RequestPlaylists {
|
|
|
|
optional bool include_closed = 1;
|
|
|
|
}
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// A Client requests songs from a specific playlist
|
|
|
|
message RequestPlaylistSongs {
|
|
|
|
optional int32 id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Client want to change track
|
|
|
|
message RequestChangeSong {
|
|
|
|
// In which playlist is the song?
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
// And on which position?
|
|
|
|
optional int32 song_index = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set the volume
|
|
|
|
message RequestSetVolume {
|
|
|
|
optional int32 volume = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Repeat and Random messages
|
|
|
|
message Repeat {
|
|
|
|
optional RepeatMode repeat_mode = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Shuffle {
|
|
|
|
optional ShuffleMode shuffle_mode = 1;
|
|
|
|
}
|
2013-01-15 13:05:43 +01:00
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// Response from server
|
2013-01-15 13:05:43 +01:00
|
|
|
// General info
|
2013-01-14 19:07:34 +01:00
|
|
|
message ResponseClementineInfo {
|
|
|
|
optional string version = 1;
|
2013-01-15 13:05:43 +01:00
|
|
|
optional EngineState state = 2;
|
2020-11-27 13:05:53 +01:00
|
|
|
|
|
|
|
optional bool allow_downloads = 3;
|
|
|
|
|
|
|
|
// allowed extensions for REQUEST_FILES and LIST_FILES
|
|
|
|
repeated string files_music_extensions = 4;
|
2013-01-14 19:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// The current song played
|
|
|
|
message ResponseCurrentMetadata {
|
|
|
|
optional SongMetadata song_metadata = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// The playlists in clementine
|
|
|
|
message ResponsePlaylists {
|
|
|
|
repeated Playlist playlist = 1;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional bool include_closed = 2;
|
2013-01-14 19:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// A list of songs in a playlist
|
|
|
|
message ResponsePlaylistSongs {
|
|
|
|
optional Playlist requested_playlist = 1;
|
2020-11-27 13:05:53 +01:00
|
|
|
|
2013-01-15 14:03:00 +01:00
|
|
|
// The songs that are in the playlist
|
|
|
|
repeated SongMetadata songs = 2;
|
2013-01-14 19:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// The current state of the play engine
|
|
|
|
message ResponseEngineStateChanged {
|
|
|
|
optional EngineState state = 1;
|
|
|
|
}
|
|
|
|
|
2013-01-22 22:02:16 +01:00
|
|
|
// Sends the current position of the track
|
2020-11-27 13:05:53 +01:00
|
|
|
message ResponseUpdateTrackPosition {
|
2013-01-22 22:02:16 +01:00
|
|
|
optional int32 position = 1;
|
|
|
|
}
|
|
|
|
|
2013-01-23 20:02:12 +01:00
|
|
|
// The connect message containing the authentication code
|
|
|
|
message RequestConnect {
|
|
|
|
optional int32 auth_code = 1;
|
2013-03-27 16:54:02 +01:00
|
|
|
optional bool send_playlist_songs = 2;
|
2013-07-12 12:31:27 +02:00
|
|
|
optional bool downloader = 3;
|
2013-01-23 20:02:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Respone, why the connection was closed
|
|
|
|
enum ReasonDisconnect {
|
|
|
|
Server_Shutdown = 1;
|
|
|
|
Wrong_Auth_Code = 2;
|
2013-03-21 10:57:52 +01:00
|
|
|
Not_Authenticated = 3;
|
2013-07-12 12:31:27 +02:00
|
|
|
Download_Forbidden = 4;
|
2013-01-23 20:02:12 +01:00
|
|
|
}
|
|
|
|
message ResponseDisconnect {
|
|
|
|
optional ReasonDisconnect reason_disconnect = 1;
|
|
|
|
}
|
|
|
|
|
2013-03-20 15:57:22 +01:00
|
|
|
message ResponseActiveChanged {
|
|
|
|
optional int32 id = 1;
|
|
|
|
}
|
|
|
|
|
2013-01-23 20:02:12 +01:00
|
|
|
// A client requests a new track position
|
|
|
|
// position in seconds!
|
|
|
|
message RequestSetTrackPosition {
|
|
|
|
optional int32 position = 1;
|
|
|
|
}
|
|
|
|
|
2013-04-13 11:57:05 +02:00
|
|
|
message RequestInsertUrls {
|
|
|
|
// In which playlist should the urls be inserted?
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
repeated string urls = 2;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional int32 position = 3 [default = -1];
|
|
|
|
optional bool play_now = 4 [default = false];
|
|
|
|
optional bool enqueue = 5 [default = false];
|
2015-06-13 16:00:15 +02:00
|
|
|
repeated SongMetadata songs = 6;
|
2020-11-27 13:05:53 +01:00
|
|
|
// if we wish to create a new playlist
|
|
|
|
optional string new_playlist_name = 7;
|
2013-04-13 11:57:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Client want to change track
|
|
|
|
message RequestRemoveSongs {
|
|
|
|
// In which playlist is the songs?
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
// And on which position?
|
|
|
|
repeated int32 songs = 2;
|
|
|
|
}
|
|
|
|
|
2013-04-20 16:11:57 +02:00
|
|
|
// Messages for opening / closing playlists
|
|
|
|
message RequestOpenPlaylist {
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
}
|
|
|
|
message RequestClosePlaylist {
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
}
|
2020-11-27 13:05:53 +01:00
|
|
|
message RequestUpdatePlaylist {
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
optional string new_playlist_name = 2;
|
|
|
|
optional bool favorite = 3;
|
|
|
|
optional bool create_new_playlist = 4;
|
|
|
|
optional bool clear_playlist = 5;
|
|
|
|
}
|
2013-04-20 16:11:57 +02:00
|
|
|
|
2013-07-10 13:24:23 +02:00
|
|
|
// Message containing lyrics
|
|
|
|
message ResponseLyrics {
|
|
|
|
repeated Lyric lyrics = 1;
|
|
|
|
}
|
|
|
|
message Lyric {
|
|
|
|
optional string id = 1;
|
|
|
|
optional string title = 2;
|
|
|
|
optional string content = 3;
|
|
|
|
}
|
|
|
|
|
2013-07-12 12:31:27 +02:00
|
|
|
// Message request for downloading songs
|
|
|
|
enum DownloadItem {
|
|
|
|
CurrentItem = 1;
|
|
|
|
ItemAlbum = 2;
|
|
|
|
APlaylist = 3;
|
2014-05-08 19:17:58 +02:00
|
|
|
Urls = 4;
|
2013-07-12 12:31:27 +02:00
|
|
|
}
|
|
|
|
message RequestDownloadSongs {
|
|
|
|
optional DownloadItem download_item = 1;
|
|
|
|
optional int32 playlist_id = 2;
|
2014-05-08 19:17:58 +02:00
|
|
|
repeated string urls = 3;
|
2020-11-27 13:05:53 +01:00
|
|
|
|
|
|
|
// within a Playlist, download only requested songs
|
|
|
|
repeated int32 songs_ids = 4;
|
|
|
|
|
|
|
|
// download from the FileSystem remotely
|
|
|
|
// using the defined root directory and the urls (filenames)
|
|
|
|
optional string relative_path = 5;
|
2013-07-12 12:31:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message ResponseSongFileChunk {
|
|
|
|
optional int32 chunk_number = 1;
|
|
|
|
optional int32 chunk_count = 2;
|
|
|
|
optional int32 file_number = 3;
|
|
|
|
optional int32 file_count = 4;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional SongMetadata song_metadata = 6; // only sent with first chunk!
|
2013-07-12 12:31:27 +02:00
|
|
|
optional bytes data = 7;
|
|
|
|
optional int32 size = 8;
|
2013-12-31 15:26:42 +01:00
|
|
|
optional bytes file_hash = 9;
|
2013-07-12 12:31:27 +02:00
|
|
|
}
|
|
|
|
|
2013-08-01 18:13:14 +02:00
|
|
|
message ResponseLibraryChunk {
|
|
|
|
optional int32 chunk_number = 1;
|
|
|
|
optional int32 chunk_count = 2;
|
|
|
|
optional bytes data = 3;
|
|
|
|
optional int32 size = 4;
|
2013-12-31 15:26:42 +01:00
|
|
|
optional bytes file_hash = 5;
|
2013-08-01 18:13:14 +02:00
|
|
|
}
|
|
|
|
|
2013-07-23 16:59:50 +02:00
|
|
|
message ResponseSongOffer {
|
2020-11-27 13:05:53 +01:00
|
|
|
optional bool accepted = 1; // true = client wants to download item
|
2013-07-23 16:59:50 +02:00
|
|
|
}
|
|
|
|
|
2013-08-15 20:52:12 +02:00
|
|
|
message RequestRateSong {
|
2020-11-27 13:05:53 +01:00
|
|
|
optional float rating = 1; // 0 to 1
|
2013-08-15 20:52:12 +02:00
|
|
|
}
|
|
|
|
|
2014-05-10 14:53:38 +02:00
|
|
|
message ResponseDownloadTotalSize {
|
|
|
|
optional int32 total_size = 1;
|
|
|
|
optional int32 file_count = 2;
|
|
|
|
}
|
|
|
|
|
2014-10-21 17:59:02 +02:00
|
|
|
message RequestGlobalSearch {
|
|
|
|
optional string query = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResponseGlobalSearch {
|
|
|
|
optional int32 id = 1;
|
|
|
|
optional string query = 2;
|
|
|
|
optional string search_provider = 3;
|
|
|
|
repeated SongMetadata song_metadata = 4;
|
2015-05-03 18:30:58 +02:00
|
|
|
optional bytes search_provider_icon = 5;
|
2014-10-21 17:59:02 +02:00
|
|
|
}
|
|
|
|
|
2014-11-13 22:31:49 +01:00
|
|
|
message ResponseTranscoderStatus {
|
|
|
|
optional int32 processed = 1;
|
|
|
|
optional int32 total = 2;
|
|
|
|
}
|
|
|
|
|
2015-05-31 12:08:33 +02:00
|
|
|
enum GlobalSearchStatus {
|
|
|
|
GlobalSearchStarted = 1;
|
|
|
|
GlobalSearchFinished = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResponseGlobalSearchStatus {
|
|
|
|
optional int32 id = 1;
|
|
|
|
optional string query = 2;
|
|
|
|
optional GlobalSearchStatus status = 3;
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:05:53 +01:00
|
|
|
// access the FileSystem remotely from a defined root directory
|
|
|
|
message RequestListFiles {
|
|
|
|
optional string relative_path = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FileMetadata {
|
|
|
|
optional string filename = 1;
|
|
|
|
optional bool is_dir = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResponseListFiles {
|
|
|
|
enum Error {
|
|
|
|
NONE = 0;
|
|
|
|
ROOT_DIR_NOT_SET = 1;
|
|
|
|
DIR_NOT_ACCESSIBLE = 2;
|
|
|
|
DIR_NOT_EXIST = 3;
|
|
|
|
UNKNOWN = 4;
|
|
|
|
}
|
|
|
|
optional string relative_path = 1;
|
|
|
|
repeated FileMetadata files = 2;
|
|
|
|
optional Error error = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RequestAppendFiles {
|
|
|
|
// where to append the files
|
|
|
|
optional int32 playlist_id = 1;
|
|
|
|
// or we create a new playlist
|
|
|
|
optional string new_playlist_name = 2;
|
|
|
|
|
|
|
|
optional string relative_path = 3;
|
|
|
|
repeated string files = 4;
|
|
|
|
|
|
|
|
optional bool play_now = 5;
|
|
|
|
optional bool clear_first = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Stream {
|
|
|
|
optional string name = 1;
|
|
|
|
optional string url = 2;
|
|
|
|
optional string url_logo = 3;
|
|
|
|
}
|
|
|
|
message ResponseSavedRadios {
|
|
|
|
repeated Stream streams = 1;
|
|
|
|
}
|
|
|
|
|
2013-01-14 19:07:34 +01:00
|
|
|
// The message itself
|
|
|
|
message Message {
|
2020-11-27 13:05:53 +01:00
|
|
|
optional int32 version = 1 [default = 21];
|
|
|
|
optional MsgType type = 2
|
|
|
|
[default = UNKNOWN]; // What data is in the message?
|
2013-01-15 13:05:43 +01:00
|
|
|
|
2013-01-23 20:02:12 +01:00
|
|
|
optional RequestConnect request_connect = 21;
|
2013-04-16 13:57:04 +02:00
|
|
|
optional RequestPlaylists request_playlists = 27;
|
2013-01-15 13:05:43 +01:00
|
|
|
optional RequestPlaylistSongs request_playlist_songs = 10;
|
|
|
|
optional RequestChangeSong request_change_song = 11;
|
|
|
|
optional RequestSetVolume request_set_volume = 12;
|
2013-01-23 20:02:12 +01:00
|
|
|
optional RequestSetTrackPosition request_set_track_position = 23;
|
2013-04-13 11:57:05 +02:00
|
|
|
optional RequestInsertUrls request_insert_urls = 25;
|
|
|
|
optional RequestRemoveSongs request_remove_songs = 26;
|
2013-04-20 16:11:57 +02:00
|
|
|
optional RequestOpenPlaylist request_open_playlist = 28;
|
|
|
|
optional RequestClosePlaylist request_close_playlist = 29;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional RequestUpdatePlaylist request_update_playlist = 53;
|
2013-07-12 12:31:27 +02:00
|
|
|
optional RequestDownloadSongs request_download_songs = 31;
|
2013-08-15 20:52:12 +02:00
|
|
|
optional RequestRateSong request_rate_song = 35;
|
2014-10-21 17:59:02 +02:00
|
|
|
optional RequestGlobalSearch request_global_search = 37;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional RequestListFiles request_list_files = 50;
|
|
|
|
optional RequestAppendFiles request_append_files = 51;
|
|
|
|
|
2013-01-15 13:05:43 +01:00
|
|
|
optional Repeat repeat = 13;
|
|
|
|
optional Shuffle shuffle = 14;
|
2020-11-27 13:05:53 +01:00
|
|
|
|
2013-01-15 13:05:43 +01:00
|
|
|
optional ResponseClementineInfo response_clementine_info = 15;
|
|
|
|
optional ResponseCurrentMetadata response_current_metadata = 16;
|
|
|
|
optional ResponsePlaylists response_playlists = 17;
|
|
|
|
optional ResponsePlaylistSongs response_playlist_songs = 18;
|
|
|
|
optional ResponseEngineStateChanged response_engine_state_changed = 19;
|
2013-01-22 22:02:16 +01:00
|
|
|
optional ResponseUpdateTrackPosition response_update_track_position = 20;
|
2013-01-23 20:02:12 +01:00
|
|
|
optional ResponseDisconnect response_disconnect = 22;
|
2013-03-20 15:57:22 +01:00
|
|
|
optional ResponseActiveChanged response_active_changed = 24;
|
2013-07-10 13:24:23 +02:00
|
|
|
optional ResponseLyrics response_lyrics = 30;
|
2013-07-12 12:31:27 +02:00
|
|
|
optional ResponseSongFileChunk response_song_file_chunk = 32;
|
2013-07-23 16:59:50 +02:00
|
|
|
optional ResponseSongOffer response_song_offer = 33;
|
2013-08-01 18:13:14 +02:00
|
|
|
optional ResponseLibraryChunk response_library_chunk = 34;
|
2014-05-10 14:53:38 +02:00
|
|
|
optional ResponseDownloadTotalSize response_download_total_size = 36;
|
2014-10-21 17:59:02 +02:00
|
|
|
optional ResponseGlobalSearch response_global_search = 38;
|
2014-11-13 22:31:49 +01:00
|
|
|
optional ResponseTranscoderStatus response_transcoder_status = 39;
|
2015-05-31 12:08:33 +02:00
|
|
|
optional ResponseGlobalSearchStatus response_global_search_status = 40;
|
2020-11-27 13:05:53 +01:00
|
|
|
optional ResponseListFiles response_list_files = 52;
|
|
|
|
optional ResponseSavedRadios response_saved_radios = 54;
|
2013-01-14 19:07:34 +01:00
|
|
|
}
|