![]() |
Sayonara Player
|
remote controlling Sayonara via TCP protocol More...
Classes | |
class | RemoteControl |
Remote control allows to control Sayonara from an external application via network. Various commands are implemented. Sayonara also delivers information about state changes,The current implemented commands are: play start playing pause pause playing prev previous song next next song playpause toggle play/pause stop stop playing volup increase volume voldown decrease volume setvol <int> change volume pl fetch the active playlist curSong fetch the current song index seekrel <int> seek within song in percent seekrelms <int> seek within song in relative to current position in seconds chtrk <int> change track state request state: every answer except playlists are returned Answers are sent in JSON format. Each answer is terminated with 10 bytes long ENDMESSAGE. The list of attributes is: volume<int> current volume value between 0 and 100 Current track track-title<string> current track title track-artist<string> current track artist track-album<string> current track album track-total-time<int> current track total time in seconds track-current-position<int> current track position in seconds Broadcasting broadcast-active<bool> is broadcast active? broadcast-port<int> port where broadcasts can be received from Cover cover-data<string> Base64 encoded JPG file cover-width<int> width of cover pixmap cover-height<int> height of cover pixmap playstate<string> one of the values "playing", "paused" or "stopped" Playlist playlist-current-index<int> current playing track index playlist<array> array of tracks pl-track-title<int> title of track pl-track-album<string> album of track pl-track-artist<string> artist of track pl-track-total-time<int> length of track in seconds . More... | |
remote controlling Sayonara via TCP protocol