KA-Radio Protocol: We can use the KA-Radio protocol to control the audio player provided by the audiotools. Supported commands: play, instant, volume, volume+, volume-, pause, resume, stop, start, next, prev, mute, infos, version. Example: volume=50&play=128&infos See https://github.com/karawin/Ka-Radio32/blob/master/Interface.md.
More...
#include <KARadioProtocol.h>
KA-Radio Protocol: We can use the KA-Radio protocol to control the audio player provided by the audiotools. Supported commands: play, instant, volume, volume+, volume-, pause, resume, stop, start, next, prev, mute, infos, version. Example: volume=50&play=128&infos See https://github.com/karawin/Ka-Radio32/blob/master/Interface.md.
- Author
- Phil Schatzmann
◆ KARadioProtocol() [1/2]
Empty constructor: call setPlayer to define the player.
◆ KARadioProtocol() [2/2]
◆ addCommand()
◆ getEndPos()
| int getEndPos |
( |
StrView & |
line, |
|
|
int |
start |
|
) |
| |
|
inlineprotected |
◆ index()
Provides the actual index.
◆ processCommand() [1/3]
| bool processCommand |
( |
const char * |
input, |
|
|
Print & |
result |
|
) |
| |
|
inlineoverridevirtual |
◆ processCommand() [2/3]
| bool processCommand |
( |
Str & |
name, |
|
|
Str & |
arg, |
|
|
Print & |
result |
|
) |
| |
|
inline |
Processes a single command.
◆ processCommand() [3/3]
◆ readLine()
| int readLine |
( |
Stream & |
in, |
|
|
char * |
str, |
|
|
int |
max |
|
) |
| |
|
inlineprotectedinherited |
Reads a line delimited by '
' from the stream.
◆ setMaxInputBufferSize()
| void setMaxInputBufferSize |
( |
int |
size | ) |
|
|
inlineinherited |
Defines the input buffer size used by the readLine function (default 256)
◆ setPlayer()
◆ stationName()
| const char * stationName |
( |
| ) |
|
|
inlineprotected |
◆ title()
Provides the actual title.
◆ actions
◆ max_input_buffer_size
| int max_input_buffer_size = 256 |
|
protectedinherited |
◆ p_player
◆ title_str
◆ volume
The documentation for this class was generated from the following file: