Reply To: "push" songs to SoundBridge

#8464
CCRDude
Participant

@ron: One point where I would actually imagine to use the RCP is over WLAN on my smartphone. Sadly, the only application for Windows CE is not free and needs to .Net framework… so I might quite possibly attempt a few things in this direction 😉
My library would be Pascal, not Perl though. As platform-independent, but less interpreted 😀


@fizze
: I just tried it. An example: create a small text file named “startpl0.txt” with the following contents (important: line break after the last text line):

rcp
NowPlayingClear
ServerDisconnect
ListServers
ServerConnect 0
GetConnectedServer
ListPlaylists
ListPlaylistSongs 0
QueueAndPlay 0
exit
exit

Then run

telnet w.x.y.z 4444 < startpl0.txt

Will connect to the first server in the available list (just in case the SB isnt connected yet), and play playlist #0 (if you do it manually, you can see what number your desired playlists is after issuing ListPlaylists).
What I noticed: GetConnectedServer was quite important, the rest should be more or less self-explanatory.