Android-Remote icon indicating copy to clipboard operation
Android-Remote copied to clipboard

clementine remote api

Open GRbit opened this issue 5 years ago • 7 comments

I want to make clementine remote client for desktop to not only control the player, but also to download songs from library.

I'm not very experienced in Java, so it will be hard to me to understand how exaclty Android-Remote communicate with clementine, so I want to know, is there some public api for remote control? Or maybe you can specify main places in code where I can look to better understand communication process?

GRbit avatar Mar 14 '20 13:03 GRbit

looking for exaclty the same!

some investigation:

the protocol is https://github.com/protocolbuffers/protobuf

may take a look at

https://raw.githubusercontent.com/clementine-player/Android-Remote/master/app/src/main/java/de/qspool/clementineremote/backend/pb/ClementineRemoteProtocolBuffer.java

https://github.com/clementine-player/Android-Remote/blob/master/app/src/main/java/de/qspool/clementineremote/backend/pb/remotecontrolmessages.proto

https://github.com/clementine-player/Android-Remote/blob/master/app/src/main/java/de/qspool/clementineremote/backend/pb/ClementineMessage.java

https://github.com/clementine-player/Android-Remote/blob/master/app/src/main/java/de/qspool/clementineremote/backend/pb/ClementineRemoteProtocolBuffer.java

I would like at least a CLI to remote control Clementine from other Linux PC

tincho avatar Jul 01 '20 22:07 tincho

@GRbit @tincho have you guys done something? I'm planing to do a new remote in Qt/QML so it will be deployable on all the OS (including iOS). My goal is mainly to add the feature I'm interested in: the possibility to browse folders on the server (from a root folder set in the settings) I'll see what I'll add also, not sure I'll clone the Java remote myself. If people are interested to join, please let me know. I'll probably have some time in October to do it.

mbruel avatar Sep 26 '20 10:09 mbruel

@mbruel I've done nothing, but if you will start doing something like CLI or Qt/QML remote client, I'll be glad if you contact me directly.

GRbit avatar Sep 28 '20 11:09 GRbit

@GRbit drop me an email at [email protected] I'll probably start next week. I've already patched Clementine to add a Files root folder for the Remote Client :p alt text

mbruel avatar Sep 28 '20 11:09 mbruel

personally I moved from Clementine to mpd + Cantata (when available, else for Android there's MPD Control) ... the feature I miss the most from Clementine is to manually enqueue (CTRL+D) tracks ... so I basically add a bunch of albums to the list, enable shuffle mode, and occasionally enqueue a few tracks when I want them to play in a given order

if Clementine UX could be integrated as MPD client that would be just perfect 😍

tincho avatar Sep 28 '20 20:09 tincho

@tincho I don't know Cantata. I doubt their remote API is the same than the one of Clementine as it seems really embedded and specific.

mbruel avatar Sep 28 '20 21:09 mbruel

Cantata is just an MPD client, one of many. They adopt the MPD client protocol.

I know Clementine has its own player and engine but in my wildest fantasies I dream of having the Clementine UI consuming an MPD server

tincho avatar Sep 28 '20 22:09 tincho