#include <statehandler.h>
Inherits QObject.
The StateHandler class allows one to track information about playback progress.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ StateHandler()
Object constructor.
- Parameters
-
◆ ~StateHandler()
◆ audioParameters()
Returns output audio parameters.
◆ audioParametersChanged
Emitted when audio parameters have changed.
- Parameters
-
p | New audio parameters for output. |
◆ bitrate()
Returns current bitrate (in kbps)
◆ bitrateChanged
void bitrateChanged |
( |
int |
bitrate | ) |
|
|
signal |
Emitted when bitrate has changed.
- Parameters
-
bitrate | New bitrate (in kbps) |
◆ bufferingProgress
void bufferingProgress |
( |
int |
progress | ) |
|
|
signal |
This signal is emitted when the stream reader fills it's buffer. The argument progress indicates the current percentage of buffering completed.
◆ dispatch() [1/5]
void dispatch |
( |
qint64 |
elapsed, |
|
|
int |
bitrate |
|
) |
| |
Sends information about playback progress.
- Parameters
-
elapsed | Current time (in milliseconds). |
bitrate | Current bitrate (in kbps). |
◆ dispatch() [2/5]
Sends information about audio parameters.
- Parameters
-
◆ dispatch() [3/5]
void dispatch |
( |
qint64 |
duration | ) |
|
Sends information about song length
- Parameters
-
duration | track length in milliseconds |
◆ dispatch() [4/5]
void dispatch |
( |
const QHash< QString, QString > & |
info | ) |
|
Sends stream information info
◆ dispatch() [5/5]
◆ dispatchBuffer()
void dispatchBuffer |
( |
int |
percent | ) |
|
Sends buffering progress.
- Parameters
-
percent | Indicates the current percentage of buffering completed. |
◆ duration()
qint64 duration |
( |
| ) |
const |
Returns duration in milliseconds
◆ elapsed()
Returns the current time (in milliseconds).
◆ elapsedChanged
void elapsedChanged |
( |
qint64 |
time | ) |
|
|
signal |
Tracks elapesed time.
- Parameters
-
time | New track position in milliseconds. |
◆ instance()
Returns a pointer to the first created StateHandler instance.
◆ sendFinished()
Sends playback finished event.
◆ sendNextTrackRequest()
void sendNextTrackRequest |
( |
| ) |
|
Sends next track request.
◆ state()
Returns the current state.
The documentation for this class was generated from the following file: