![]() |
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 \t start playing
pause \t pause playing
prev \t previous song
next \t next song
playpause \t toggle play/pause
stop \t stop playing
volup \t increase volume
voldown \t decrease volume
setvol <int>\t change volume
pl \t fetch the active playlist
curSong \t fetch the current song index
seekrel <int> \t seek within song in percent
seekrelms <int> \t seek within song in relative to current position in seconds
chtrk <int> \t change track
state \t 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> \t current position in seconds
vol:<int> \t current volume
curIdx:<int> \t current track index in active playlist
title:<string> \t current track title
artist:<string> \t current track artist
album:<string> \t current track album
totalPos:<string> \t length of track in seconds
playstate:[playing|paused|stopped] \t current playback state
playlist:<stringlist> \t active playlist
broadcast:<int,int> \t broadcast settings: <active, broadcast port>
coverinfo:<width,height,format> \t width, height, qt image format.
\tfollowed by 0x00,0x01,0x00,0x01<cover data>0x00,0x01,0x00,0x01
Public Member Functions | |
RemoteControl (QObject *parent=nullptr) | |
bool | is_connected () const |
Protected Attributes | |
Settings * | _settings =nullptr |