#include <statehandler.h>
List of all members.
Detailed Description
The StateHandler class allows one to track information about playback progress.
- Author:
- Ilya Kotov <forkotov02@ya.ru>
Constructor & Destructor Documentation
Object constructor.
- Parameters:
-
Member Function Documentation
Returns output audio parameters.
Emitted when audio parameters have changed.
- Parameters:
-
| p | New audio parameters for output. |
Returns current bitrate (in kbps)
Emitted when bitrate has changed.
- Parameters:
-
| bitrate | New bitrate (in kbps) |
This signal is emitted when the stream reader fills it's buffer. The argument progress indicates the current percentage of buffering completed.
| void dispatch |
( |
qint64 |
elapsed, |
|
|
int |
bitrate |
|
) |
| |
Sends information about playback progress.
- Parameters:
-
| elapsed | Current time (in milliseconds). |
| bitrate | Current bitrate (in kbps). |
Sends information about audio parameters.
- Parameters:
-
Sends information about song length
- Parameters:
-
| length | song length in milliseconds |
Sends metadata metaData. Returns true if metadata has been accepted, otherwise returns false
| void dispatch |
( |
const QHash< QString, QString > & |
info | ) |
|
Sends stream information info
Sends buffering progress.
- Parameters:
-
| percent | Indicates the current percentage of buffering completed. |
Returns the current time (in milliseconds).
Tracks elapesed time.
- Parameters:
-
| time | New track position in milliseconds. |
Returns a pointer to the first created StateHandler instance.
Sends playback finished event.
Sends next track request.
Returns the current state.
Returns length in milliseconds
The documentation for this class was generated from the following file: