![]() |
Sayonara Player
|
#include <RemoteControl.h>
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
The current implemented answers are: (multiple parameters are separated by the tab character. And answer always ends with th four bytes combination 0x00 0x01 0x00 0x01)
curPos:<int> current position in seconds
vol:<int> current volume
curIdx:<int> current track index in active playlist
title:<string> current track title
artist:<string> current track artist
album:<string> current track album
totalPos:<string> length of track in seconds
playstate:[playing|paused|stopped] current playback state
playlist:<stringlist> active playlist
broadcast:<int,int> broadcast settings: <active, broadcast port>
coverinfo:<width,height,format> width, height, qt image format.
by 0x00,0x01,0x00,0x01<cover data>="">0x00,0x01,0x00,0x01
Public Member Functions | |
RemoteControl (QObject *parent=0) | |
bool | is_connected () const |
Protected Attributes | |
Settings * | _settings =nullptr |